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.

how to resize the dropdown column width of MultiColumn ComboBox?

Thread ID:

Created:

Updated:

Platform:

Replies:

80288 Mar 27,2009 01:11 AM Nov 26,2012 08:12 AM Windows Forms 5
loading
Tags: Tools
David Cui
Asked On March 27, 2009 01:11 AM


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

david


Fathima Shalini P [Syncfusion]
Replied On March 27, 2009 05:52 AM

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


Robert Kellner
Replied On May 11, 2012 05:13 AM

the link doesn't work...



Arun A [Syncfusion]
Replied On May 15, 2012 03:32 AM

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

Eric Robishaw
Replied On November 16, 2012 03:17 PM

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


Chandran R [Syncfusion]
Replied On November 26, 2012 08:12 AM

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


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.

;