1
Answer

Data to list view from .xml file

Ask a question
Samuel Vaesy

Samuel Vaesy

16y
2.5k
1
Idea is to display and update data from .xml file in three different listviews(in their own tabs). The xml contains measurement data which needs to be displayed on screen and updated at certain intervals, and there are quite many sensors, so it would be reasonable to display data in three different pages/tabs. Xml file contains <sensor> nodes, which have childnodes: <name>, <description>, <value> and <page_id>. Name, value and description should be displayed in their own columns, and one sensor per row, and also data of each sensor should only be displayed in one page/tab depending on the page_id. Could look like This.

What would be the best way to start? Could LINQ be the solution to read the .xml file and then update to to list view? But how to update values to the differetn pages/tabs/listviews? I got one version working somehow, but it didn't actually update anything, it only added same information after the first displayed ones...

I'm using Visual C# express 2008


- Vertti

Answers (1)