Scroll DataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • afamir
    New Member
    • Aug 2006
    • 1

    #1

    Scroll DataGridView

    Hi
    How can I scroll to selected row in datagridview when i select that rows with its index.
    thanks
    Amir Afshai
  • chandkavi
    New Member
    • Oct 2006
    • 1

    #2
    you to scroll to selected row in the DataGridView control by setting its FirstDisplayedS crollingRowInde x to the selected row index.

    Dim row As DataGridViewRow

    row = DGrid_Job_List. CurrentRow
    DGrid_Job_List. FirstDisplayedS crollingRowInde x = DGrid_Job_List. Rows.IndexOf(ro w)

    enjoy.......... .

    Comment

    • watsod1
      New Member
      • Nov 2006
      • 3

      #3
      Originally posted by chandkavi
      you to scroll to selected row in the DataGridView control by setting its FirstDisplayedS crollingRowInde x to the selected row index.

      Dim row As DataGridViewRow

      row = DGrid_Job_List. CurrentRow
      DGrid_Job_List. FirstDisplayedS crollingRowInde x = DGrid_Job_List. Rows.IndexOf(ro w)

      enjoy.......... .
      This worked really good, Thanks.

      Comment

      Working...