Checkboxes in first row of DataGridView are readonly
Posted on 2007-10-03
I have a datagridview in my app which is bound to a datatable, the datagridview has predefined columns, both text and checkboxes.
For some reason the top row will not allow me to change the state of the checkboxes by clicking on them. I can edit the text in the row - so it is not a problem of the row being readonly. Also, if I sort the data by clicking a header then whichever row ends up at the top will not accept changes to the checkboxes and the previously uneditable row (which is now further down the list) now does accept changes to the checkboxes.
It seems to me that there is a problem with the DataGridView control in the framework, so my question is: has anyone else come across this and did they find a workaround?