Setting a value for true on a checkbox column

2 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    Sep 2012

    Posted 23 Nov 2015 Link to this post

    Converting from using the microsoft DataGridView.  When using a checkbox column in DataGridView, you can set the value that the data holds for the item to be checked, or the true value.  In our system, True is 1, and 0 is false. 

    Is there a way to have the GridViewCheckColumn identify what the data value should be for true?  It would be a lot of work to change all of our data to convert to use boolean rather than 1/0.



  2. Dimitar
    Dimitar avatar
    1328 posts

    Posted 25 Nov 2015 Link to this post

    Hi John,

    Thank you for writing.

    In this case, you should use a TypeConverter. An example for this is available here: Converting Data Types.

    Please let me know if there is something else I can help you with. 
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top