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.

GridListControl && MaxDropDown =xx in GridDataBoundGrid how?

Thread ID:





52340 Nov 27,2006 05:29 AM Nov 27,2006 06:04 AM Windows Forms 1
Tags: GridControl
Christian Fleischhacker
Asked On November 27, 2006 05:29 AM


I have a GridDataBoundGrid with several GridListControls inside the some cells. This Cells are set via the ColStyles i.e. All Cells of a particular column are GridListControls;

I would like to set the MaxDropDown of this GridListCells to 25, i know how to do this with "normal" ComboboxCells, but with the GridList, i'm a litte confused, since it seems there is no specific CellRenderer class (like GridComboBoxCellRenderer for the Combobox) for the gridlist; so is there a cellRenderer for the GridList available and if so, what is its name?

THX in advance

Administrator [Syncfusion]
Replied On November 27, 2006 06:04 AM

Hi Christian,

Thanks for using Syncfusion Products.

You can access GridDropDownGridListControlCellRenderer of the GridListControl cell and control the height of a dropdown gridlistcontrol through a DropDownRows property in the embedded GridDropDownGridListControlPart. With it, you specify the number of rows that you want to see. Here is a code snippet to show this.

private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e)
GridDropDownGridListControlCellRenderer cr = this.gridDataBoundGrid1.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer ;
if( cr != null)
(( GridDropDownGridListControlPart) cr.ListControlPart).DropDownRows = 10;

Best Regards,


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.