Hello AllI am using infragsitics tree view control.I have one stored procedure that returns 2 tables 1.Parent Table2.Child TableCurrently i m Binding the treeview on the basis of these 2 tables by using loops wherein i take one row of the master table, create one node , find the associated records in child table and add it under the Parent node.This method works fine when there are few records.But it really takes a hell lot of time when there are high number of records.
Is there any way to directly assign datasource to treeview ? without traversing through any loops manually? such that we just need to provide 2 tables containing master and child records as the datasource and the treeview manages it automatically and binds the data
Please help.. Thanks in advance
Yes, the control exposes a DataSource property.
Can u please explain me with an example ?
I tried it and got it working but it shows me entire 2 tabels in the treview. I only want to display 1 column from the parent table as parent and one column from the child table as its children
Like
Parent1
->Child1
->Child2
Please help