How to Databind a CheckBoxAdv to an SQL Database if the Corresponding DataTable Field is Boolean
The CheckBoxAdv’s BoolValue property can be used to data bind bool values as illustrated below.
private void Form1_Load(object sender, System.EventArgs e)
{
this.oleDbDataAdapter1.Fill(this.dataSet11.Table1);
}
// Using CheckBoxAdv's BoolValue property for Data binding.
this.checkBoxAdv1.DataBindings.Add("BoolValue", this.dataSet11.Table1, "CheckValue");
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Me.oleDbDataAdapter1.Fill(Me.dataSet11.Table1)
End Sub
' Using CheckBoxAdv's BoolValue property for Data binding.
Me.checkBoxAdv1.DataBindings.Add("BoolValue", Me.dataSet11.Table1, "CheckValue")
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page