Hi Everyone,
i have a problem with importing data from xml to datagridview.
It load's only first part on xml, but not what i really need from xml.
Here is code:
private void btnSelect_Click_1(object sender, EventArgs e)
{
OpenFileDialog fd = new OpenFileDialog();
fd.Filter = "XML Files |*.xml";
fd.ShowDialog();
string path = fd.FileName;
DataSet ds = new DataSet();
ds.ReadXml(path);
dataGridView1.DataSource = ds.Tables[0];
}
and here is result:

Bellow you can see xtml which i want to load and i select in yellow what i want to show in datagridview,for each item in xml.
Values marked in yellow is what i want to show in datagridview, and first part which is surrounded with yellow is info which i get now in datagridview but which i don't want.

can you help me to solve this issue?
Thank you very much.

Jefferson S. MottaRank #207 · 11.7K reputationPosted May 19, 2020, 11:50 AM EDT
Vuk Stanojevic163 reputationPosted May 19, 2020, 12:37 PM EDT
Jefferson S. MottaRank #207 · 11.7K reputationPosted May 19, 2020, 12:54 PM EDT
Vuk Stanojevic163 reputationPosted Oct 3, 2020, 9:24 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Oct 3, 2020, 7:45 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 3, 2020, 9:29 PM EDT
Vuk Stanojevic163 reputationPosted Oct 4, 2020, 5:56 AM EDT
Vuk Stanojevic163 reputationPosted Oct 4, 2020, 8:26 AM EDT
Jefferson S. MottaRank #207 · 11.7K reputationPosted May 19, 2020, 9:25 AM EDT
Vuk Stanojevic163 reputationPosted May 19, 2020, 9:35 AM EDT