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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





2764 Feb 12,2003 10:45 PM UTC Feb 13,2003 08:50 PM UTC WinForms 2
Tags: GridControl
Renzo Bauen
Asked On February 12, 2003 10:45 PM UTC

Hi i am working on a Project with a Databoundgridcontrol containing a Couple of Columns. The first Column has a "Combobox"-Celltype and the second has a "GridListControl"-Celltype. Both of them are showing only 6 rows while dropped down. The GridListControl show's the Header-Row plus 5 Datarows and the Combobox shows 6 Datarows. How can i change the Number of Rows to be displayed in the Drop-Down-List? I tryed to figure it out by checking then Samples shipped with the Grid. I realized that even in those Samples the Combobox and the GridListControl are showing only 6 Rows! Thanks for any Hint! Renzo

Administrator [Syncfusion]
Replied On February 12, 2003 11:26 PM UTC

Use the following code: GridComboBoxCellRenderer cr = grid.CellRenderers[ ComboBox"] as GridComboBoxCellRenderer; ((GridComboBoxListBoxPart)cr.ListBoxPart).DropDownRows = nItems; GridDropDownGridListControlCellRenderer cr = grid.CellRenderers[ GridListControl"] as GridDropDownGridListControlCellRenderer; ((GridDropDownGridListControlPart)cr.ListControlPart).DropDownRows = nItems; nItems is the number of dropdown rows you want to be visible. Stefan

Renzo Bauen
Replied On February 13, 2003 08:50 PM UTC

Thanks, this works fine! Renzo


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