Programmatically checking DataGridViewCheckBoxCell
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Say, I have
DataGridviewCheckBoxCell cell
object. I can select/deselect it by doing
cell.Value = true
/
cell.Value = false
. This works until user manually selects/deselects some checkbox - after that this checkbox stops changing after assigning a value. What could be the reason for that?
-
Say, I have
DataGridviewCheckBoxCell cell
object. I can select/deselect it by doing
cell.Value = true
/
cell.Value = false
. This works until user manually selects/deselects some checkbox - after that this checkbox stops changing after assigning a value. What could be the reason for that?
Assuming you've bound the grid to a datasource, you have to modify the datasource, not the cell values.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak