1. I am using a tree view on the left side of the form to display the categories present in the XML file. I want to have details of that category and the questions to be displayed on the right side on clicking any of the node of the tree. Since, the questions will be different for each node present in the tree, can someone suggest me any way to achieve this. I think using a datagrid control for changing the questions on click of a tree view node will be an option. Please let me know if it is right.
2. If data grid control can be used is there someway that I can bind data from an XML file to the datagrid control and at the same time have the fields editable?
First, there's no easy way of having XML -> datagrid binding with editing capabilities. The only way you have here is using a DataSet loaded from a segment of the XML (the current set of questions) and bound to the datagrid. Placing the results back in the XML document is a matter of taking the XML back from the DataSet, locating the appropriate node in the XmlDocument and assigning its InnerXml.
Dig Deeper on Win Development Resources
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ... Continue Reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers. Continue Reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.