Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically scrolling
Message
De
16/04/2007 20:07:40
 
 
À
16/04/2007 17:25:58
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01214513
Message ID:
01216545
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform