2
Answers

C# - winforms - How to populate multicolumn DataGridVew via reading xml node by node

Photo of Memento

Memento

12y
1.5k
1
C# - winform
I have a multicolumn DataGridView (dgv01) and successfully filled first column by xml nodes:
XmlDocument file01;
XmlNode node;
string path01 = Application.StartupPath + "\\History.xml";
file01 = new XmlDocument();
file01.Load(path01);
node = file01.DocumentElement;
foreach (XmlNode node1 in node.ChildNodes)
if (node1.Name == "abc")
{
 dgv01.Rows.Add(node1.InnerText);
}
But, i also want to populate second and third dgvColumns by some other nodes, and not via creating DataSet, but reading node by node, just as with first column.
What is the way, pls?
Thanks in advance.

Answers (2)

0
Photo of Nitesh Luharuka
NA 18k 1.5m 12y
Have you tried anything till now to save data in database? Do you want one to many records in MemberSkill table?