AD
Administrator
Syncfusion Team
November 27, 2006 11:04 AM UTC
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,
Haneef