Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding refresh
Message
 
À
01/12/2004 18:56:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00966178
Message ID:
00966238
Vues:
7
I'm doing this at the UI side, see my previous reply, i got it working but, not sure what is the best method to use.

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform