I fill my grid with one SQL table which contains an int col "SENT".
Its values are -1 for "OK" and 0 for "Not OK".
By default, the radgridview bind checked = 1 and unchecked = 0.
Is it possible to bind the checkbox column of the radgridview with -1=checked and 0=unchecked ?
Thank you.
2 Answers, 1 is accepted
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 May 2017, 01:57 PM
Hello Perico,
Thank you for writing.
The GridViewDataColumn provides a unified way of converting incompatible value types to a type supported by the column instance. Thus, you can control how the data coming from your database is interpreted by RadGridView. Please refer to the following help article which demonstrates a sample approach how you can handle your case: http://docs.telerik.com/devtools/winforms/gridview/columns/converting-data-types
I hope this information helps. Should you have further questions I would be glad to help.