Mike Fechner
375 posts
Registered:
14 Sep 2016
27 May 2021
in reply to
Pascal Pyck
Link to this post
What are you trying to solve exactly?
If it's validation, Microsoft recommends the use of the Validating or Validated events (more details in the .NET documentation). But shouldn't that be a task for the backend?
If you want to compare the current value to the original one , you can compare the values in the BindingSource's InputValue dictionary with the Value property of the Infragistics control. Remember to use UNBOX ...
Or you can call the Data Adapter's GetFieldValue() method to get the value from the temp-table field.
If you just need to know the field value was changed, you should relay on the ValueChanged event in combination with checking if the field has Focus and if the ValueChanged was triggered from the BindingSource. There is sample code for that in the SmartViewerControl class.