ComponentOne Input for WinForms
Input for WinForms Task-Based Help / Binding C1CheckBox / Binding C1CheckBox to a Boolean Field
In This Topic
    Binding C1CheckBox to a Boolean Field
    In This Topic

    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