Hi There;
I'm trying to bind an System.Xml.Linq.XElement to a TreeView. Currently I'm using and XMLDataSource as an intermediary and converting the XElement to a string:
This works but surley there a more direct, cleaner way of doing this without converting the XElement ot a string?
Can anyone help please?
Thanks in advance
-Pete
I'm trying to bind an System.Xml.Linq.XElement to a TreeView. Currently I'm using and XMLDataSource as an intermediary and converting the XElement to a string:
XmlDataSource1.Data = myXElement.ToString(); |
RadTreeView1.DataSource = XmlDataSource1; |
RadTreeView1.DataBind(); |
This works but surley there a more direct, cleaner way of doing this without converting the XElement ot a string?
Can anyone help please?
Thanks in advance
-Pete