Actually im not sure if its called selected index, selected row or not. if not, can someone tell me whats the name of this pointer and how am i able to change it in datagridview?

Actually im not sure if its called selected index, selected row or not. if not, can someone tell me whats the name of this pointer and how am i able to change it in datagridview?

It's
SelectedRows. Link to MSDNTo change it in the code behind, you'd need to retrieve the index of the row you want to select and change its
Selectedproperty totrueSo as an example, if your DataGridView is called
myDataGridViewhas 25 rows, you wanted to select the 15th row programatically. You'd do:Hope that helps.