开发者

Using UltratreeView (Infragistics TreeView) control

开发者 https://www.devze.com 2023-01-27 05:00 出处:网络
Hello All I am using infragsitics tree view control.I have one stored procedure that returns 2 tables

Hello All I am using infragsitics tree view control.I have one stored procedure that returns 2 tables 1.Parent Table 2.Child Table Currently i m Binding the treeview on the basis of these 2 tabl开发者_开发百科es 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


Take a look at this sample http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/WinTree_Displaying_WinTree_with_Columns_in_Grid_Style.html

You can bind the data to the grid, and as long as you define the parent\child relationship the grid will be able to display master and child records.

0

精彩评论

暂无评论...
验证码 换一张
取 消