Hi,
I tested the code and what I find is that if the datagridview is unbound, ie, it has only the checkboxcolumn, it's working perfectly fine. This means that it is the data binding with the XML file that's causing an issue. How are you binding to the file? Can you paste the code here?