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.
Unfortunately, activation email could not send to your email. Please try again.

How to change the default drop down list number

Thread ID:

Created:

Updated:

Platform:

Replies:

18664 Sep 7,2004 05:22 AM Sep 9,2004 03:50 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 7, 2004 05:22 AM

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 07:29 AM

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 02:34 AM

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 2.0.5.1

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

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

CONFIRMATION

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.

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.

;