Information générale
Catégorie:
.NET Compact Framework
Titre:
DataSet read from XML what's the table name
My understanding of datasets some days.... especially with compact framework
I get the XML with an inline schema (VFP8) from a webservice. This is done with ReadXml and I can use this in displaying textboxes and grid, but I fall short on understanding where one derives the table name in for example myDataSet.Tables[????] when it comes from a webservice. I am using myDataSetTables[0].DataView as DataSource for a DataGrid, but because I need this for DataGridColumnStyle MappingName I am at a loss.
Here's part of the code.
string xml = lu.ItemXML;
this.ds = new DataSet();
this.ds.ReadXml(new XmlTextReader(new StringReader(xml)), System.Data.XmlReadMode.ReadSchema);
this.dgItemListing.DataSource = this.ds.Tables[0].DefaultView;
Thanks
Jon
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement