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

Autodropdown of ComboBox Cell

Thread ID:





59080 Apr 4,2007 03:42 PM UTC Apr 4,2007 06:14 PM UTC WinForms 3
Tags: GridControl
Christian Lützenkirchen
Asked On April 4, 2007 03:42 PM UTC


I am looking for the following behaviour of a combobox cell:
The Combobox has ExclusiveChoiceList = true; like the one in the CellControlsGrid_2005 Sample in Cell C23. When I start typing the list should open so that I can use the up and down keys to select a value. How Can I achieve this?


haneefm [Syncfusion]
Replied On April 4, 2007 05:16 PM UTC

Hi Christian,

You can try this.

this.grid.Model[1,1].CellType ="ComboBox";
this.grid.Model[1,1].ChoiceList = stCollection;
this.grid.Model[1,1].DropDownStyle = GridDropDownStyle.AutoComplete.

Also refer the following forum thread for autocomplete textbox in a grid.

Best regards,

Christian Lützenkirchen
Replied On April 4, 2007 05:56 PM UTC

Hi Haneef,

thank you for your sample. Setting DropDownStyle = GridDropDownStyle.AutoComplete does not drop down the list. The first sample has the behaviour I want, I have to add a dropdown button.

Am I right that there is no property to do this with the standard-control?

Best Regards,

haneefm [Syncfusion]
Replied On April 4, 2007 06:14 PM UTC

Hi Christian,

One way you can do this by handling the CurrentCellKeyPress event and call the ShowDropDown method for autocomplete combobox cell in a grid. The following is the code snippet.

private void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
GridControl grid = sender as GridControl;
GridCurrentCell cc = grid.CurrentCell;
if( !cc.IsDroppedDown )

Best regards,


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