[vb.net] DataGridView 첫 번째로 표시되는 행 스크롤 인덱스(FirstDisplayedScrollingRowIndex)
하나를하더라도최선을
2020-06-17 11:25:19
40,272
0
0
i = DataGridView1.DataSource.Rows.IndexOf(R)
DataGridView1.ClearSelection()
DataGridView1.Rows(i).Selected = True
DataGridView1.FirstDisplayedScrollingRowIndex = i
DataGridView1.Refresh()
여기서 R은 DataRow 입니다.