Hello all,
We have an UltraCheckEditor on a form that needs to be bound to numeric data. The data contains all zeroes and ones, but we do not control the data and therefore cannot change it to a bit column. Where do I place code to convert the underlying data into a boolean value so that it can be displayed in the checkbox? Also, where do I place code to update the underlying data when the user checks/unchecks the checkbox? Thanks!
You could also do this using the DotNet binding class's Format and Parse events. These events allow you to translate the data from the data source into a value the control can understand and vice versa.
Or you could use the DataFilter on the UltraCheckEditor which essentially does the same thing.
Hello Mike,
Thanks for the response. Could you post a bit of sample code showing how to use the DataFilter as you mentioned above? Thanks for the help!
HOWTO:Use a WinGrid DataFilter to convert strings to bools (and vice-versa) for a checkbox column
Understanding IEditorDataFilter Convert functionality - Infragistics Community
Yes, the links were very helpful. That will suffice, for now.
Hi
Did the links Mike sent help you? Do you require any more assistance?