Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically scrolling
Message
From
16/04/2007 20:07:40
 
 
To
16/04/2007 17:25:58
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01214513
Message ID:
01216545
Views:
17
It seems that DataGrid has the CurrentRowIndex property, but DataGridView does not.

Weird, huh?

~~Bonnie

>>How do you scroll a DataGridView programmatically? I have selected a row programmatically that is outside of the viewable area. How can I scroll to that row?
>>
>>Richard
>
>Funny you should ask, I just had to do this last night. You locate the row you wish to have scroll and then:
>
>
>this.dataGrid.CurrentRowIndex = _currentRow;
>this.dataGrid.Select(_currentRow);
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform