OK,
I have my datagridview all set up - mostly with data from a table but I have a couple of unbound columns.
In particular I have a checkbox column.
Now I capture the CellContentClick event so I can "flip" the checkbox from on to off and vica versa when the cell is clicked...
But for some bizarre reason I can NEVER change the value...
I set the value to FALSE or TRUE but they never seem to take effect....
The code worked fine when I has NOT in virtual mode (the datagrid) - as soon as I switched to virtual mode it all stoppd working...
Am I missing something
Thanks,
Simon

Unbound Checkbox
Tony1059
So I need to populate the column - yes I know that and I handle the click event to try and deal with that. But I must be missing something else....
Anybody point me in the right direction here
Thanks
Simon
Sergey Golovkin
If ContentSourceDG.CurrentRow.Cells("SelectRow").Value = True Then
ContentSourceDG.CurrentRow.Cells("SelectRow").Value = False
Else
ContentSourceDG.CurrentRow.Cells("SelectRow").Value = True
End If
Thanks
Simon
joshep
hi,
would you plz post your code
best regards
Joe_D
hi, Simon
this articale talk about checkboxcolumn in datagridview when you use virtual mode and how can you fix it, this webpage has links for examples even,you can read and implement that on your example
hope this helps
mattstr1221
hi,
in virutal mode you need to store your data that exposed in the unbound column
http://msdn2.microsoft.com/en-us/library/ms171622.aspx
hope this helps