S
sklett
I can't find an example of how to bind a bool to a CheckBox.
DataBindings.Add() takes 3 parameters;
1) the name of the bound property
2) the data source
3) the name of the data source property.
In the case of a simple bool... what is the data source property name?
Here is what I'm after:
bool someBool = false;
checkBox1.DataBindings.Add("checked", someBool, ????);
Thanks for any help,
Steve
DataBindings.Add() takes 3 parameters;
1) the name of the bound property
2) the data source
3) the name of the data source property.
In the case of a simple bool... what is the data source property name?
Here is what I'm after:
bool someBool = false;
checkBox1.DataBindings.Add("checked", someBool, ????);
Thanks for any help,
Steve