I have an XML file with two columns:
HostDescription
HostAddress
I want to add both to a ListView and add one more column (status) for each so that I can update the status for each Host based on the address..
How can I do that please
I have an XML file with two columns:
HostDescription
HostAddress
I want to add both to a ListView and add one more column (status) for each so that I can update the status for each Host based on the address..
How can I do that please
populate ListView with XML columns + 1 more column
dvidal
You just make one ListView with 3 columns
DataSet ds = new DataSet();
ds.ReadXML(filepath);
Foreach (DataRow r in ds.Tables[0].Rows)
{
ListView1.Items.Add(Status);
ListView1.Items[ListView1.Items.Count - 1].Subitems.Add(r[0].ToString());
ListView1.Items[ListView1.Items.Count - 1].Subitems.Add(r[1].ToString());
}
Best Regards!
Misa Simic, MSCD .NET