Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview DataBinding Help needed getting System.Data.DataRowView

Status
Not open for further replies.

vaichi123

Programmer
Dec 2, 2006
20
US
I am creating a TreeView in my webform using RAD controls from Telerik, Right now I need to load only the root nodes of the tree from my sql server database table using a simple select query. When I databind my RadTreeview I can see the correct number of root nodes but instead of the data, I just see "system.data.datarowview" on all the nodes. There is no actual data on the nodes.

Can someone please tell me what is causing this and not loading the correct data on the TreeView Root nodes?
 
I was able to resolve this. It was only an issue with setting the datatextfield and datavaluefield property of the TreeView control to the value of the datatable in the dataset which could be done in the design view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top