I want focus at second cell of first record when datagrid loads on the event form load.
I have tried this but failed:
Dim rowToSelect As DataGridViewRow = gvBlockedTreatment.Rows(0)
rowToSelect.Selected = True
rowToSelect.Cells(2).Selected = True
gvBlockedTreatment.CurrentCell = rowToSelect.Cells(2)
the code works normal in other event but not on form load.Please suggest.