checkbox custom true and false value
hi all,
i have a checkbox bound to a column with datatype character to my database... the column uses values Y and N.
also, just like to add that i have tried changing the column into character of 5 byte so that it can hold the values "True" and "False" when the property bound is the property Checked. this works okay but there are some columns that doesn't use True and False like in my statement above.
is there a way that i can set my checkbox to checked when the column value it is bound to is Y and vice versa.. i noticed that in the checkbox inside a datagridview has the properties TrueValue and FalseValue but i dont see this anywhere in the checkbox not in the datagridview.
thanks.
Re: checkbox custom true and false value
You can't use a regular CheckBox. Inherit the CheckBox class and add your own property that will get and set the Checked property based on "Y"c and "N"c values. You can then bind to that property.
Re: checkbox custom true and false value
thanks... will try it out.