GridGroupingControl with GridListControl CellTypes

I have several GridListControl''s (with DataSource''s) in some of my GGC cells (both parent and child tables). I have a TableControlCurrentCellCloseDropDown event set, and I would like to deternmine A: Since I have several GLC''s, what is the name of the GGC column that triggered the GLC event, and B: retrieve the data from the selected GLC DataSource. Thanks,

1 Reply

AD Administrator Syncfusion Team September 14, 2005 02:43 PM UTC

From the e.tableControl, you can get teh GridTableCellStyleInfo object for the current cell. From the style, you can get teh DataSource, DisplayMember and ValueMember.
private void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	GridStyleInfo style = e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex);
	Console.WriteLine(((DataTable)style.DataSource).TableName);

}

Loader.
Up arrow icon