JJ
Jisha Joy
Syncfusion Team
October 1, 2009 10:24 AM UTC
Hi,
Thank you for posting query to us.
Please see the following code that shows how to set datasource to the gridlist dropdown in GridGroupingControl in QueryCellStyleInfo event.
this.gridGroupingControl1.TableDescriptor.Columns["Col0"].Appearance.AnyRecordFieldCell.CellType = "GridListControl";
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell
|| e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)
{
if (e.TableCellIdentity.Column != null && e.TableCellIdentity.Column.MappingName == "Col0")
{
e.Style.DataSource = GetTable1();
e.Style.DisplayMember = "ID";
e.Style.ValueMember = "Description";
}
}
}
Regards,
Jisha