Possible duplicate:
Datagridview row selection programmatically?
I am developing a new desktop application in C # using Windows Forms. In one of my forms, I put a DataGridView Control , and I populate it with dataGridViewControl Dynamically using my custom functions.
Now, after filling in the above control, is there a way to programmatically select the first row of this DataGridViewview . Note. The selection mode property of this DataGridView is set to Full Row Selection.
source share