Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding Issue
Message
De
23/11/2010 19:42:13
 
 
À
19/11/2010 19:26:21
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:
01490309
Vues:
61
After fiddling with this for a while, I tried the endedit and it worked.
acceptchanges also works.

Thanks for pointing me at it, Bonnie.


Is there any functional difference between the two?
The doc implies that the datasource will be updated. That's not happening, and I don't want it to.

Under what circumstances would endedit cause the datasource to be updated?









>>>I thought you said one that wasn't working was bound to an object? :
>"The only difference I can see is the data in the first case is coming from a datatble, while in the second case it's coming from properties in an object "
>
>Sorry for the confusion, Viv. In both cases, the textbox is bound to a datatable.
>In the case that works, the datatable is being updated from another data table.
>In the case that doesn't work, the datatable is being updated from an object.

Maybe try an .EndEdit() on the DataRow you've just updated?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform