Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table not updated.
Message
De
14/06/2007 15:25:05
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
14/06/2007 14:35:05
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01232865
Message ID:
01233236
Vues:
10
>I think I found it.
>
>
>xref.AcceptChanges();  // Does not send update back to source.
>ta.Update(xref);       // Does send update back to source.
>
>
>But if you call AcceptChanges before Update... nothing gets sent.
>
>Not sure I get the usefullness of AcceptChanges, but at least I get why I'm not updating.

Yes, the .AcceptChanges only "finalizes" the changes in the datatable... you need to reconcile the differences back to the SQL table. And really, I think you should be sending the change back to the database and if there are no errors, do an .AcceptChanges.

Sorry about not replying sooner...
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform