ComponentOne Input for WinForms
Binding C1CheckBox to a Boolean Field
Input for WinForms Task-Based Help > Binding C1CheckBox > Binding C1CheckBox to a Boolean Field

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";
See Also