I have a regular non-bound Grid Control and one of the cells is of type "GridListControl." It is a dropdown grid activated combo style. The data within this DD.GLC is dynamic and I would like to format the text in each row based on the data in that GLC row. The data source for the DD.GLC is an arrayList and is built after the user has chosen something from within a different non-bound grid cell. Where can I hook into to format a specific cell in the DD.GLC?
Thanks in advance,
ADAdministrator Syncfusion Team May 13, 2005 08:47 PM
You have to subscribe the QueryCellInfo event of the embedded GridListControl of the cell. To subscribe, you can use
GridDropDownGridListControlCellRenderer cr = this.gridControl1.CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
GridListControl glc = cr.ListControlPart;
glc.Grid.QueryCellInfo += new GridQueryCellInfoEventHandler(Grid_QueryCellInfo);
In the handler, specify whatever properties you want on the style for teh particular cell.