22 | 02 | 2017

Datagridview Select Row on Right Click Mouse

The code below selects the row (where the mouse cursor is on) when the right mouse button is used.  

DataGridView1.ClearSelection()
DataGridView1.Rows(DataGridHistory.HitTest(e.Location.X, e.Location.Y).RowIndex).Selected = True

Login

Sign up now and upload your code to the website.

Help us to continue.....
Statistics
Articles View Hits
2174909
Latest Articles