Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmUltraGrid Infragistic with maintenance object
Message
De
28/07/2005 00:33:43
 
 
À
27/07/2005 22:37:57
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01034479
Message ID:
01036479
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform