Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
selecting a row when user click on cell.
posted

Is there a setting or simple code that makes a row 'selected' when the user clicks a cell in the row?

I am returning data based on grid_doubleclick and the first thing I check is

If dg.DisplayLayout.SelectedRows.Count = 0 Then

Exit Sub

End If

 

to make sure they have selected a valid row.