Link to home
Start Free TrialLog in
Avatar of kvnsdr
kvnsdr

asked on

DataGridView Scroll To Row?

I'm trying to make a "Quick Find" for a dataGridView.

I have a datagridVeiw filled with 40,000 rows and need to scroll the dataGridView to the number typed into a textbox.

The textBox event will fire the Quick Find code, but not sure how to scroll the loaded grid.

[datatable]
PrimaryKey,  Number,  Description
ASKER CERTIFIED SOLUTION
Avatar of JimBrandley
JimBrandley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry - I meant to select Proposed solution for that.
The actual answer to the question is to use DataGridView.FirstDisplayedScrollingRowIndex = (index of the selected row).