We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is TreeViewAdvDataBound available in syncfusion 4.4

Thread ID:

Created:

Updated:

Platform:

Replies:

68241 Sep 13,2007 05:12 AM UTC Sep 18,2007 12:59 PM UTC WinForms 3
loading
Tags: Tools
Keping Wu
Asked On September 13, 2007 05:12 AM UTC

Is the control TreeViewAdvDataBound available in 4.4. I saw it's in the help file. But I cound't find it.

Basically what i want to do is to display a table in a treeview and group them into different level based on the column names.


Jeba S [Syncfusion]
Replied On September 13, 2007 08:54 AM UTC

Hi Keping,

Thank you for posting query to us.

There is no separate control like TreeViewAdvDatabound. We could achieve treeview data binding by combining TreeViewAdv and DataBoundGrid.

1.TreeData - To access DataSource( DataSet )

2.TreeDataBinder - To bind data with TreeViewAdv control.

3.TreeDataSource - It is main class handles databindings with TreeViewAdv and TreeNodeAdv control.

By using these classes we could achieve TreeViewAdvDataBinding.

Please refer this sample and let us know if this helps.
http://websamples.syncfusion.com/samples/Tools.Windows/F68241/main.htm

Thank you for using Syncfusion Products.

Regards,
Jeba.

Keping Wu
Replied On September 13, 2007 01:26 PM UTC

Hi Jeba,

Thanks for your response. :D

Actually what i'm looking for is not master-detail tables. I'm looking for a self grouped treeview as TreeViewAdvDataBound provided before.

I've got a table like:

Country Division Branch IsActive
C1 D1 B1 True
C1 D1 B2 False
C1 D2 B3 False

I want to bind the table into a treeview and set the group columns to "Country" "division" , then when the data is loaded, the first two columns will be used to group and level the data. IsActive can be used to set the checkbox attached to each node.

C1 - D1 - B1
- B2
- D2 - B3

Jeba S [Syncfusion]
Replied On September 18, 2007 12:59 PM UTC

Hi Keping,

Sorry for the delay in response.

The TreeViewAdvDataBound control supports data binding by taking a relational datasource with rows and columns (DataSet, DataView, ArrayList) and grouping the rows based on one or more specified fields. This will result in a hierarchical view which will be displayed in the tree control.

You can specify data to be grouped using the GroupedColumns property of the control.

Please refer this sample and let us know if this helps.
http://websamples.syncfusion.com/samples/Tools.Windows/F68241/main.htm

Regards,
Jeba.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;