Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Como popular DataGrid com XML?
Message
De
29/12/2003 15:07:25
 
 
À
28/12/2003 23:22:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00862423
Message ID:
00862608
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Pessoal,
>Tenho um COM escrito em VFP8 que retorna um documento XML.
>Numa página ASP.NET com códigos em C# qual é a melhor maneira de se colocar os dados do documento XML retornado pelo COM num DataGrid?
>Tem que converter o documento XML pra RecordSet?... como fazer isso?...

olá, Geraldo. Tente isto:
string lcXML = SeuComponente.ObterXML()
DataSet loDS = new DataSet();
loDS.ReadXml( new StringReader(lcXML) );
      
this.oGrid.DataSource = loDS.Tables[0];
this.oGrid.DataBind();         
Claudio Lassala
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform