Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically scrolling
Message
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:
01216571
Vues:
13
Hi, Richard,

Let's start with something simple, and tell me if this works or if you need more. Assuming you know the actual row position index number that you want to navigate to, you can use the Bindingmanager of the grid and set the postion...
BindingManagerBase bmgr = 
    this.dataGridView1.BindingContext[this.dataGridView1.DataSource, this.dataGridView1.DataMember];
bmgr.Position = <index you want to go to> ;
Not to complicate things, but keep in mind that any position is relative to the current view. (for instance, if the user clicks on a grid column heading to sort on that column, you need to take that into account).

So anyway, let me know if this helps...

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform