Reputation: 124
I have a winform with a series of check boxes as buttons.
The datatype in SQL is a it
The checkbox is bound
When the value is true the text on the "button" says "True" when false it says "False"
I want the text to not change from what I type in.
EX;
Checkbox says "Unit Active?"
When true it changes to True, I want it to say Unit Active? and turn green
Any suggestions?
TIA
Upvotes: 0
Views: 352
Reputation: 174299
It looks like you are binding to the Text
of the Checkbox. However, you specifically state that you don't want the text to change.
I think that you should bind to the Checked
property instead.
Upvotes: 0