Hi,
I have an XML file I need to dump the data in 4 different tables. Can any one please provide the C# code to achieve this.
Regards,
MZEE
Hi,
I have an XML file I need to dump the data in 4 different tables. Can any one please provide the C# code to achieve this.
Regards,
MZEE
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jul 15, 2012, 1:13 AM EDT
//the path in which XML file is saved
string path = "D:\\Santhosh\\XMLFile1.xml";
DataSet ds=new DataSet();
//Reading XML file and copying to dataset
ds.ReadXml(path);
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "table1";
you can read more in the below article.
http://www.c-sharpcorner.com/UploadFile/1a81c5/populating-values-from-xml-to-gridview-and-from-gridview-to/
Virus Kiraak14 reputationPosted Jul 15, 2012, 2:52 AM EDT
Regards, MZEE