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.
This was first published in August 2004