Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically scrolling
Message
From
17/04/2007 11:17:22
 
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01214513
Message ID:
01216789
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform