Edit this page

DataBinding RadCheckBox

RadCheckBox supports all DataBinding features you might expect from a Windows Forms control.

DataBinding at Design-time

To add DataBindings at Design Time, expand the (DataBindings) property, and then click the ellipsis button (Advanced) to launch the Formatting and Advanced Binding dialog.

buttons-checkbox-radcheckbox-databinding 001

Scroll down the property list and find the IsChecked property. From the Binding drop-down menu, select the data source, and then the property that you wish to bind. Click OK. Now the IsChecked property of your Telerik RadCheckBox is bound to your source.

Programmatic DataBinding

You can also add DataBindings to your control programmatically. The following code demonstrates binding the IsChecked property to a column in a DataTable.

this.radCheckBox1.IsThreeState = false;
DataTable t = new DataTable();
t.Columns.Add("A", typeof(bool));
this.radCheckBox1.DataBindings.Add(new Binding("IsChecked", t, "A"));

Me.radCheckBox1.IsThreeState = False
Dim t As New DataTable
t.Columns.Add("A", GetType(Boolean))
Me.radCheckBox1.DataBindings.Add(New Binding("IsChecked", t, "A"))