Selecting a row in DataGridView programmatically

后端 未结 8 2360
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 12:58

How can I select a particular range of rows in a DataGridView programmatically at runtime?

8条回答
  •  天命终不由人
    2020-12-08 13:13

    Try this:

    DataGridViewRow row = dataGridView1.Rows[index row you want];
    dataGridView1.CurrentRow = row;
    

    Hope this help!

提交回复
热议问题