Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding Issue
Message
De
19/11/2010 19:19:33
 
 
À
19/11/2010 16:38:39
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01489807
Message ID:
01489861
Vues:
37
>>>The only thing I can think of that might cause the problem is if the DataTable is a different object. In other words, you've either re-created the DataSet or its DataTables

Yes, Bonnie
I've done that a few times and I suspected that, so I populated one column with a distinct value after the dataset and datatable were initially instantiated and displayed that column at the time I was changing the columns whose bound textboxes failed to refresh.
The value was still there, so I assume that I was looking at the same instance of the dataset and the datatable.
Is that a valid conclusion?


>>(so, I don't know why you're clearing them & rebinding)

Yes, that's a kludge that I put in to get the thing to work. As I read the doc, it shouldn't be necessary




>>I'm confused too, Bill.

Once you've done the DataBinding (DataBindings.Add("Text" .... etc.), you should not have to issue that DataBind code again (so, I don't know why you're clearing them & rebinding). The only thing I can think of that might cause the problem is if the DataTable is a different object. In other words, you've either re-created the DataSet or its DataTables. If that's the case, you could do DataSet or DataTable .Clear() before repopulating your DataSet rather than creating a new instance of it. If that's NOT the case, then something else is going on that's causing it to appear that your databinding needs refreshing ... as I said, you shouldn't have to.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform