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.
Akash8 pointsPosted Feb 8, 2008, 3:47 AM EST
Akash8 pointsPosted Feb 11, 2008, 5:56 AM EST
please someone provide me some clue here. Thanks
thiru kumaran2 pointsPosted May 24, 2008, 2:00 AM EDT
Private Sub burning_status_view_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles burning_status_view.CellContentClick
sender.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
Next
sender.rows(e.RowIndex).cells("select").value = status
End Sub