Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding refresh
Message
De
01/12/2004 18:56:04
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00966178
Message ID:
00966236
Vues:
7
OK, but where are you doing this? Server-side? How are you getting that DataSet back to the UI?

~~Bonnie



>Thanks,
>
>That doesn't work for me :(, Everytime a take a step forward with this thing it seems like i'm taking two step backward...
>
>I tried to do the same as you do, i little bit differently:
>
>StringBuilder sb = new StringBuilder();
>System.IO.StringWriter sw = new StringWriter(sb);
>res.queryResult.WriteXml(sw);
>StringReader sr = new StringReader(sb.ToString());
>_cust.ReadXml(sr, XmlReadMode.InferSchema);
>_cust.AcceptChanges();
>
>
>I have the same result as if i replace the _cust value with a new Dataset, no update to the databinding fields.
>
>
>
>>>Yes it's helps.... How do you reload your XML back into your existing Dataset ?
>>
>>With a string reader:
>>
>>StringReader sr = new StringReader(XML);
>>Data.ReadXml(sr, XmlReadMode.InferSchema);
>>Data.AcceptChanges();
>>
>>which is implemented in our DataSet base class.
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform