how can i fill a treeview using xml data source in a windows application
thx
Windows Forms Data Controls and Databinding
How to populate a treeview from a dataset
http://support.microsoft.com/kb/320755
Extending the TreeView control
http://msdn2.microsoft.com/en-us/library/ms996437.aspx
DsMenuPrograms = objDB.dsCreateDataSet(strSQl)
ParentTable = DsMenuPrograms.Tables(0)
For Each parentrow In ParentTable.Rows Dim parentnode As System.Windows.Forms.TreeNodeparentnode =
New System.Windows.Forms.TreeNode(parentrow.Item(1))inTreeNode.Nodes.Add(parentnode)
parentnode.Tag = parentrow.Item(0)
PopulateTreeView(parentrow.Item(0), parentnode)
Next parentrow End Sub
i wrote the above code ,but what i need is to fill or bind the treeview control from XML file