This is a migrated thread and some comments may be shown as answers.

Setting a value for true on a checkbox column

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 23 Nov 2015, 06:48 PM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Nov 2015, 02:36 PM
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. 
 
Regards,
Dimitar
Telerik
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
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or