Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding Issue (another one)
Message
De
18/01/2011 18:25:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Databinding Issue (another one)
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01496497
Message ID:
01496497
Vues:
87
     MessageBox.Show(soinf.somastds.soversion[0].version);
        MessageBox.Show(soinf.somastds.soversion.Rows.Count.ToString());
        textBoxVersion.DataBindings.Clear();
        textBoxVersion.DataBindings.Add("Text", soinf.somastds.soversion, "version");
        MessageBox.Show(textBoxVersion.Text);
The first messagebox shows"B"
The second messagebox shows 1
The third messagebox shows "A"

At one time, the textbox was bound to a record in that DT whose version was "A"
That row was deleted and replaced by the current row.
How do I get that control bound properly?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform