본문 바로가기
개발자 커뮤니티에 오신 것을 환영합니다!

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

페이지 정보

profile_image
작성자 하나를하더라도최선을
댓글 0건 조회 34,497회 작성일 20-06-17 11:25

본문

            i = DataGridView1.DataSource.Rows.IndexOf(R)
            DataGridView1.ClearSelection()
            DataGridView1.Rows(i).Selected = True
            DataGridView1.FirstDisplayedScrollingRowIndex = i
            DataGridView1.Refresh()



여기서 R은 DataRow 입니다.

댓글목록

등록된 댓글이 없습니다.


Copyright © program1472 | IT HUB. All rights reserved.