Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically scrolling
Message
De
17/04/2007 11:17:22
 
 
À
16/04/2007 22:42:56
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:
01216789
Vues:
15
Kevin,

I can't get this to work with the BindingManagerBase as you've shown unless I also set the CurrentCell as I showed in my example. Am I missing something?

~~Bonnie



>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform