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.
Unfortunately, activation email could not send to your email. Please try again.

Multicolumntreeview databound sample

Thread ID:

Created:

Updated:

Platform:

Replies:

69474 Oct 29,2007 04:41 PM Oct 31,2007 04:43 PM Windows Forms 2
loading
Tags: Tools
Vinod Tandon
Asked On October 29, 2007 04:41 PM

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?


http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=70



Thanks
-Vinod

Rajagopal [Syncfusion]
Replied On October 30, 2007 10:08 PM

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.

Regards,
Rajagopal


Vinod Tandon
Replied On October 31, 2007 04:43 PM

Thanks Rajagopal,

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

Thanks
-Vinod

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.

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.

;