Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmUltraGrid Infragistic with maintenance object
Message
From
28/07/2005 00:33:43
 
 
To
27/07/2005 22:37:57
Joel Casse
Bishops University
Lennoxville, Quebec, Canada
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01034479
Message ID:
01036479
Views:
17
Joel & Mike,

I don't use MM, but since Kevin mentioned that it was up to the standard .NET databinding, I think I can help you pinpoint what's going on:

There are two ways (two different syntaxes) to specify databinding for any control and this results in two distinct binding objects. The problem is that you can't mix and match ... you have to stay consistent throughout the form.

So, in other words, if you bound your DataGrid with:
this.oGrid.DataSource = MyDataSet;
this.oGrid.DataMember = "MyTable";
Then you have to use the following syntax with TextBoxes:
this.txtLastName.DataBindings.Add("Text", MyDataSet, "MyTable.LastName")
But if you bound your grid with:
this.oGrid.DataSource = MyDataSet.Tables["MyTable"];
Then you use this syntax for TextBoxes:
this.txtLastName.DataBindings.Add("Text", MyDataSet.Tables["MyTable"], "LastName")
~~Bonnie



>No Mike, not yet, if you find something please notify me.
>
>Thanks Joel:)
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform