Guys,
I have a DataGridView with checkbox column in a WINDOWS FORM. I want user to CHECK only one row/checkbox. Means if row 2 Checkbox is Checked and user clicks on row 5, I want row 2 Checkbox to Uncheck and row 5 Checkbox to Checked.
I was able to do this task in CheckedListBox control but I am having a hard time in DataGridView checkbox column. Please advice me.....thanks.
thiru kumaranPosted May 24, 2008, 6:00 AM
Private
Sub burning_status_view_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles burning_status_view.CellContentClicksender.endedit()
Dim status As Boolean = sender.rows(e.RowIndex).cells("select").value For Each row As DataGridViewRow In burning_status_view.Rows If row.Cells("select").Value Then row.Cells("select").Value = False Nextsender.rows(e.RowIndex).cells("select").value = status
End SubAkashPosted Feb 11, 2008, 10:56 AM
please someone provide me some clue here. Thanks
AkashPosted Feb 8, 2008, 8:47 AM