I am working on a Windows desktop app that will allow the user to do the following:
1. Select an XML file
2. Select an Element from the XML
3. Display the child elements and the associated values
4. Select a specific value of a child element and display all occurrences of that value
All of this will displayed in a Windows Forms DataGridView Control.
So I have wanted to learn some more Linq for a while so I decided to do use Linq for querying the XML data instead of using XPath.
This post is the first post of what will likely be a few posts in this series as there are some other items I will cover. I will want to have two panels in this application, one that contain the XML structure(so the user can select which Elements they want to view) and the other panel will show the results. I might also have a 3rd panel that shows the source xml. I am going to try and do some drag and drop to allow the user drag values, we'll see how I get on with that (easy in the web world so am hoping it's not too clunky in the winforms world).
Part 1: Display Linq to XML Query Results in Windows Forms DataGridView