DataGridView 滚动条
<br />首先设置dataGridView的SelectionMode值为FullRowSelect,MultiSelect值为false. <br /><br />代码如下: <br />int index = dataGridView1.SelectedRows[0].Index; // 记录下当前选中行(活动行)的索引. <br />// 此处刷新数据 <br />dataGridView