I bind a datatalbe to a GridGroupingControl's GridColumnDescriptor
DataTable table=new DataTable();
GridColumnDescriptor c =Data_GridGroupingControl.TableDescriptor.Columns[0];
c.Appearance.AnyRecordFieldCell.DataSource =table;
c.Appearance.AnyRecordFieldCell.DisplayMember = "c1";
c.Appearance.AnyRecordFieldCell.ValueMember = "c1";
c.Appearance.AnyRecordFieldCell.DropDownStyle = GridDropDownStyle.Exclusive;
Data_GridGroupingControl.TableControlCurrentCellShowingDropDown += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellShowingDropDownEventHandler(Data_GridGroupingControl_TableControlCurrentCellShowingDropDown);
private void Data_GridGroupingControl_TableControlCurrentCellShowingDropDown(object sender, GridTableControlCurrentCellShowingDropDownEventArgs e)
{
if (e.TableControl.CurrentCell.Renderer is GridDropDownGridListControlCellRenderer)
{
GridDropDownGridListControlCellRenderer renderer = e.TableControl.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer;
renderer.ListControlPart.ItemHeight = 30;
renderer.ListControlPart.Grid.Width = 700;
////////////////// //How to show the scroolbar??
}
}
Thanks!