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

C

Charlie@CBFC

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top