To programmatically bind C1CheckBox to a Boolean field, use the following code:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1CheckBox1.DataSource = dt C1CheckBox1.DataField = "ColumnBoolean" |
To write code in C#
C# |
Copy Code
|
---|---|
C1CheckBox1.DataSource = dt; C1CheckBox1.DataField = "ColumnBoolean"; |