By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,024 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,024 IT Pros & Developers. It's quick & easy.

TreeNode Binding Error when using Data property of XmlDataSource control...

P: n/a
Hi:

I get a TreeNode binding error when using Data property of XmlDataSource
control. When I switch to TextFile property and point to xml file on hard
drive, problem goes anyway. I'm initializing Data property with xml string
that matches file exactly. Seems to be problem with binding because if I
remove bindings, tree works both ways. I'm binding on server like so...

TreeNodeBinding bind = new TreeNodeBinding();
bind.DataMember = "Category";
bind.TextField = "CategoryName";
TreeView1.DataBindings.Add( bind );

Thanks,
Charlie
Dec 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.