JJ
Jisha Joy
Syncfusion Team
March 17, 2011 11:05 AM UTC
Hi,
You can handle the CurrentCellShowingDropDown event and set the dropdown size as desired,
void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
if (cr != null)
{
((GridComboBoxListBoxPart)cr.ListBoxPart).DropDownRows = cr.ListBoxPart.Items.Count;
}
}
Regards,
Jisha