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

How Do I Display More than Six Dropdown Rows in a GridDataBoundGrid ComboBox?

Thread ID:





98656 Mar 15,2011 11:20 PM UTC Mar 17,2011 11:05 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 15, 2011 11:20 PM UTC

I'm displaying a ComboBox in a cell of a GridDataBoundGrid. By default, the ComboBox displays only six items in the dropdown list. I'd like to display many more items, but I can't figure out how. Any suggestions?


Jisha Joy [Syncfusion]
Replied On March 17, 2011 11:05 AM UTC


You can handle the CurrentCellShowingDropDown event and set the dropdown size as desired,

void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e)
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
if (cr != null)
((GridComboBoxListBoxPart)cr.ListBoxPart).DropDownRows = cr.ListBoxPart.Items.Count;





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