Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
When and where to convert numeric data to display in a WinCheckEditor
posted

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!

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children