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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drop-down for combobox in grid doesn''t appear in the right place

Thread ID:





57852 Mar 12,2007 10:22 PM UTC Apr 10,2013 03:31 PM UTC WinForms 2
Tags: GridControl
Asked On March 12, 2007 10:22 PM UTC

Any idea why this might happen? (See attachment please.)

In the image, the highlighted row was clicked, on the column labeled "Target Type." On the top left of the grid appears the drop-down for that cell.

Other times, the drop down will appear underneath the corresponding cell another row.

The grid has a series of nested tables. The underlying data for the grid looks something like this.

ROW1 (hidden)
-SUBSUBROW2 (in this row, the cell was clicked)
ROW2 (hidden)

Any ideas on how to deal with this?

Thanks in advance,



Administrator [Syncfusion]
Replied On March 13, 2007 03:08 PM UTC

Hi Eric,

I am not sure of what be might be causing this strange behavior without a working sample. But one way you can control dropdown location by deriving the DropDownWindow and adjust the location of the DropDown container. Here is a small sample where the DropDown window is dislocated from its default position. Here, I have derived ComboBoxCellModel and ComboBoxCellRenderer and override the OnLayout method to achieve the same in the attached sample.

Best regards,

ComboBox is a combination of TextBox and ListBox. PopupHost is the one that holds the combo box''''s ListBox control. This is the class where the popup is shown and the point to show is calculated. Class hierarchy looks like this: System.Windows.Forms.Form >> Syncfusion.Windows.Forms.TopLevelWindow >> Syncfusion.Windows.Forms.DropDownWindow >> Syncfusion.Windows.Forms.PopupHost.

Alex Feldman
Replied On April 10, 2013 03:31 PM UTC

Is it possible to update the example with custom size user control used for dropdown.

I have override two following methods and could not find the way to move dropdown location correctly.

public override void DropDownContainerShowingDropDown(object sender, CancelEventArgs e)
    DropDownContainer.Size = ddUser.Size;

protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
            DropDownContainer.Location = new Point(-100, 0);
            return base.OnLayout(rowIndex, 1, style, innerBounds, buttonsBounds);


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon