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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the default drop down list number

Thread ID:





18664 Sep 7,2004 09:22 AM UTC Sep 9,2004 07:50 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On September 7, 2004 09:22 AM UTC

I''m using e.Style.CellType = "ComboBox"; but want to change the equiv of MaxDropDownItems so that the scroll bar doesn''t show How do i do this?

Administrator [Syncfusion]
Replied On September 7, 2004 11:29 AM UTC

You need to change the DropDownRows on the embedded droplist (which can vary from cell to cell). Here is a forum thread that has some code snippets. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=7330

Administrator [Syncfusion]
Replied On September 9, 2004 06:34 AM UTC

if i ''globally'' set the default to say 20 using Syncfusion.Windows.Forms.Grid.GridComboBoxCellRenderer cr = (Syncfusion.Windows.Forms.Grid.GridComboBoxCellRenderer)sortGrid.CellRenderers["ComboBox"]; if (cr.ListBoxPart is GridComboBoxListBoxPart) ((GridComboBoxListBoxPart)cr.ListBoxPart).DropDownRows = 20; then on datasource bound combos you seem to end up with blank rows on the end which must be a bug. this is with version

Administrator [Syncfusion]
Replied On September 9, 2004 07:50 AM UTC

Version has a fix for this. The problem usually shows up when dropdownrows was set to a larger value (greater than 6 or 8).


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

Live Chat Icon For mobile
Live Chat Icon