setting minimum width of columns when using TreeColumAdv()

I am setting up a treeview ...

here is example code for the columns :

var colFullRowCode = new TreeColumnAdv();
colFullRowCode.Text = "Fullrow"
colFullRowCode.Width = 200;

How do i set the minimum width the colums can resized to, as currently if i resize it, it is too small amd it is hard to bring it back again.

Thanks


1 Reply

IM Iniyen M A Syncfusion Team July 25, 2011 12:31 PM UTC

Hi Mouna,

Thanks for your interest in Syncfusion products.

We do not have support to set Minimum and Maximum size for the column width. But You can achieve your requirement by using the following code snippet on MultiColumnTreeView's ColumnResized event. For more information i have included the sample as follows.

[Code Snippet]
this.multiColumnTreeView1.Columns.VisibleColumns[0].Width = 120;

[Sample]
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TreeColumnAdv2842131582210.zip

Kindly have a look on the above sample and Please let us know if you need further assistance.

Regards,
Iniyen M.A.



Loader.
Up arrow icon