Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding Issue (another one)
Message
From
18/01/2011 18:25:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Databinding Issue (another one)
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01496497
Message ID:
01496497
Views:
86
     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.
Next
Reply
Map
View

Click here to load this message in the networking platform