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

number of lines in ComboBox

Thread ID:





77018 Oct 7,2008 06:11 PM UTC Oct 10,2008 06:26 AM UTC WinForms 1
Tags: GridControl
Frederic Dubois
Asked On October 7, 2008 06:11 PM UTC

I've tried to change the number of line of a combo box in a GridControl. But I never found a properties to change that. How can I change the number of row displayed, because only 6 rows is really not enough.

Jisha Joy [Syncfusion]
Replied On October 10, 2008 06:26 AM UTC

Hi Fredric,

This can be achieved by setting the DropDownRows property of the GridComboBoxListBoxPart to a specified value in the CurrentCellShowingDropDown event.

Please refer the code:

void gridControl1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
GridCurrentCell cc = this.gridControl1.CurrentCell;
if (cc.Renderer is GridComboBoxCellRenderer)
GridComboBoxCellRenderer dr = cc.Renderer as GridComboBoxCellRenderer;
((GridComboBoxListBoxPart)dr.ListBoxPart).DropDownRows = 12;


Please let me know if this helps.



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