SteveW
Member
I have a problem using checkboxes in DataGridView.
I created a datatable having one column declared as CheckState and initialized from other application info with a state.
A DataGridView created in a form was then bound to this table. All the checkboxes look great and have the correct values. The user can click on them to change their state.
However, when the user clicks on a checkbox, it sequentially passes through all three possible checkbox states - unchecked, checked and indeterminate. I want to eliminate the indeterminate state so it just flips back and forth between checked and unchecked.
This requires that the Threestate property for the checkboxes be set to False. I cannot for the life of me figure out how to do that.
Sample code would be very appreciated!
Thanks!
Steve...
I created a datatable having one column declared as CheckState and initialized from other application info with a state.
A DataGridView created in a form was then bound to this table. All the checkboxes look great and have the correct values. The user can click on them to change their state.
However, when the user clicks on a checkbox, it sequentially passes through all three possible checkbox states - unchecked, checked and indeterminate. I want to eliminate the indeterminate state so it just flips back and forth between checked and unchecked.
This requires that the Threestate property for the checkboxes be set to False. I cannot for the life of me figure out how to do that.
Sample code would be very appreciated!
Thanks!
Steve...