In DataGridView, I want entire row (entire cells) to be selected when one cell is selected.
I'm using this piece of code to acheive this.
Above code works well in _CellMouseUp or _CellClick but not in _CellMouseDown.
Thanks. :)
I'm using this piece of code to acheive this.
Code:
Dim i As Integer
For i = 0 To empDataGridView.ColumnCount - 1
empDataGridView.Rows(e.RowIndex).Cells(i).Selected = True
Next
Thanks. :)