Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindingContext
Message
From
30/03/2005 09:33:44
 
 
To
30/03/2005 02:37:07
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00999880
Message ID:
00999917
Views:
46
Pat,

Try the other syntax for BindingContext, and that would be:
this.BindingContext[this.oCustomers.GetCurrentDataSet().Tables["Customers"]].Position = 
    this.oCustomers.GetCurrentDataSet().Tables["Customers"].Rows.Count -1;
They are actually two different objects.

~~Bonnie



>I have placed the following code in the click event of a specialized mmbuttonNew and it seems that the grid is updating but the position never changes. The underlying data bound controls on another tab in the maintenance form also does not change. Any ideas on what I am doing wrong?
>
>this.BindingContext[this.oCustomers.GetCurrentDataSet(), "Customers"].Position = this.oCustomers.GetCurrentDataSet().Tables["Customers"].Rows.Count -1;
>
>Thanks.
>Pat.
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