Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > scrolling in a DataGridView
 

scrolling in a DataGridView

I was wondering if someone could explain what the DataGridView FirstDisplayedscrollingRowIndex property does?

I am trying to find a way to scroll to hidden rows by using the down arrow key. When the row that has focus moves out of sight I would like the Grid to scroll along with it. I am not sure if the above property will help with this. Thank you for the help.

icc3wd  Tuesday, June 19, 2007 11:53 AM

I figured it out. Much easier than I thought.

DataGridView1.FirstDisplayedScrollingRowIndex = DataGridView1.SelectedRows(0).Index

icc3wd  Tuesday, June 19, 2007 12:20 PM

I figured it out. Much easier than I thought.

DataGridView1.FirstDisplayedScrollingRowIndex = DataGridView1.SelectedRows(0).Index

icc3wd  Tuesday, June 19, 2007 12:20 PM

You can use google to search for other answers

Custom Search

More Threads

• Refreshing Datagrid
• display datagridview with data from access database
• DataGridViewComboBoxColumn and Enum values
• databinding accross multiple windows forms
• Error icons on my data sources
• Query with multiple tables
• Displaying data in grid through typed dataset
• DataGridView :Question on Display
• one DatagridCombocolumn value dependes on another datagridcombocolumn
• DataGridView Combobox set datasource for each record