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

Multicolumntreeview databound sample

Thread ID:





69474 Oct 29,2007 08:41 PM UTC Oct 31,2007 08:43 PM UTC WinForms 2
Tags: Tools
Vinod Tandon
Asked On October 29, 2007 08:41 PM UTC

I cant seem to find very much documentation on using the multicolumntreeview. I'm wondering how to use a datasource with it and have the columns be sortable. I also would like to know how to get fill columns to span the entire width of the control (ie when resized).

will i need to use something like the GridColSizeHelper found here?



Rajagopal [Syncfusion]
Replied On October 31, 2007 02:08 AM UTC

Hi Vinod,

In your form's constructor add the following code to make all the columns in the MultiColumnTreeViewControl span the entire width of the control.

int width = this.multiColumnTreeView1.Width;
int colCount = this.multiColumnTreeView1.Columns.Count;
int val = width / colCount;
foreach (Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeColumnAdv treeColumn in multiColumnTreeView1.Columns)
treeColumn.Width = val;

Regarding setting the datasource for MultiColumnTreeViewControl, there is no direct support for setting the DataSource in a MultiColumnTreeViewControl. But one way you can do this by manually adding the nodes depends on the number of items in your underlying datasource.


Vinod Tandon
Replied On October 31, 2007 08:43 PM UTC

Thanks Rajagopal,

I am currently experimenting with the Grid.Grouping control as I think that might work better than using the multicolumntreeview.



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

This page will automatically be redirected to the 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