Is there a way to select an entire row in a datagridview?
Select not just the single cell, but the whole row to highlight the whole row of a particular record?
Eg -
Customerid, name, address, location etc
Printable View
Is there a way to select an entire row in a datagridview?
Select not just the single cell, but the whole row to highlight the whole row of a particular record?
Eg -
Customerid, name, address, location etc
You just set the DGV's SelectionMode property = FullRowSelect. You can do this either in design view or in code.
should do a trickCode:dgv.Rows(intRowNo).Selected = True
Cool fullrowselect is just what I wanted :)
datagridview1.SelectionMode = DataGridViewSelectionMode.FullRowSelect
:wave: