[vb.net] DataGridView 첫 번째로 표시되는 행 스크롤 인덱스(FirstDisplayedScrollingRowIndex)

하나를하더라도최선을 2020-06-17 11:25:19 40,271 0 0
            i = DataGridView1.DataSource.Rows.IndexOf(R)
            DataGridView1.ClearSelection()
            DataGridView1.Rows(i).Selected = True
            DataGridView1.FirstDisplayedScrollingRowIndex = i
            DataGridView1.Refresh()



여기서 R은 DataRow 입니다.

댓글 0개

첫 번째 댓글을 작성해보세요!