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.

ComboDropDown popup size change on the fly

Thread ID:





101188 Oct 5,2011 01:21 AM Oct 11,2011 06:19 AM Windows Forms 4
Tags: Tools
Min T
Asked On October 5, 2011 01:21 AM

I'm on v6.302 c# winforms using vs2008.
I'm trying to implement a ComboDropDown with a grid hosted in the PopupControl of the ComboDropDown. When I try to resize PopupControl the new size does not show unless the dropdown is re-dropped.
Is there a way to update/redraw the new size of the PopupControl while it is shown?


Min T
Replied On October 9, 2011 05:21 PM

Any help?

Arun A [Syncfusion]
Replied On October 10, 2011 05:07 AM

Hi Min,

Thanks for your interest in Syncfusion products.

The following code snippet would help you in achieving your requirement,

this.comboDropDown1.PopupContainer.Popup += new EventHandler(this.BeforeDropDownPopup);
private void BeforeDropDownPopup(object sender, EventArgs e)
this.comboDropDown1.PopupControl.Size = new Size (100, 200);

Please let us now if you need any other details.

Arun A

Min T
Replied On October 10, 2011 07:08 PM

Hi Arun,
Thanks for your reply. I think I may not have been clear with my question. What I would like is to be able to resize the PopupContainer / PopupControl when it is already shown and the size changes in real time by dragging its borders (just like resizing a form by dragging the borders).

Is there a way to achieve this?


Arun A [Syncfusion]
Replied On October 11, 2011 06:19 AM

Hi Min,

Thanks for your update.

ComboDropDown popup cannot be resized using mouse dragged during runtime but we can change the size of the popup width using DropDownWidth property.

Please let us now if you need any other details.

Arun A


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.