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. Image for the cookie policy date

how to resize the dropdown column width of MultiColumn ComboBox?


how to resize the dropdown column width of MultiColumn ComboBox? at runtime, when user put cursor btw. two columns.
thx.

david


5 Replies

FS Fathima Shalini P Syncfusion Team March 27, 2009 09:52 AM UTC

Hi David,

Thank you for your interest in Syncfusion Products.

At present it is not possible to resize the column and the rows in the dropdown using mouse. But we can resize the column width using ColWidths and RowHeights properties of the embedded grid in the MultiColumnComboBox.ListBox. Please refer to the KB provided below that ilustrates this:

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

Please let me know if any concerns.

Regards,
Fathima



RK Robert Kellner May 11, 2012 09:13 AM UTC

the link doesn't work...




AA Arun A Syncfusion Team May 15, 2012 07:32 AM UTC

Hi Robert,

Thanks for the update.

Please download the sample in from the following link.

http://www.syncfusion.com/downloads/Support/DirectTrac/93704/multicolumnCombobox1041302391.zip

Please let us know if you have any concerns.

Regards,
Arun


ER Eric Robishaw November 16, 2012 08:17 PM UTC

This sample does NOT show how to change column widths.

Please update the sample to show how to get to the underlying datagrid and change the column widths



CR Chandran R Syncfusion Team November 26, 2012 01:12 PM UTC

Hi Eric ,

 

Thanks for the update.

 

You can achieve your requirement by using the below code snippet,

 

[c#]

 

private void multiColumnBoundCombo_DropDown(object sender, EventArgs e)

        {

            this.multiColumnComboBox1.ListBox.Grid.Model.ColWidths[1] = 120;

            this.multiColumnComboBox1.ListBox.Grid.Model.ColWidths[2] = 120;

           

        }

I have attached the sample as per your requirements in the following link. Please run the sample and let us know if it helps you.

 

[sample link]

 

http://www.syncfusion.com/downloads/Support/DirectTrac/101433/Sample-2048059520812141350.zip

 

Please let us know if you need any other details.

 

Regards,

 

Chandran R


Loader.
Live Chat Icon For mobile
Up arrow icon