How to set datagridviewcheckboxcolumn value

sowjanya

New member
Joined
Jul 22, 2007
Messages
1
Programming Experience
Beginner
Hi,
I have a datagridviewcheckbox column in my datagridview.
I have set the TrueValue="1" and FalseValues="0".

if i programatically set the datagridviewcheckboxcell value to 1, cell is checked. but when i check/uncheck the cell using the UI, cell value is not changed.
i tried displaying the cell value in the cell click event. it always displays 0 irrespective of if it is checked/unchecked.

MsgBox(DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString)

can any one help me on this. it is required urgently.

thanks,
sowjanya.
 
Back
Top