AD
Administrator
Syncfusion Team
March 9, 2006 10:41 AM UTC
Hi Klaus,
The GridGroupingControl is a column/row-oriented grid, and not cell oriented like GridControl. So in order to set the style for a single cell the QueryCellStyleInfo event must be handled.
The table can also be checked using the TableDescriptor Name: e.TableCellIdentity.DisplayElement.ParentTableDescriptor.Name.
Regards,
Calvin.
AD
Administrator
Syncfusion Team
March 9, 2006 01:10 PM UTC
Hi Klaus,
one more note:
In your QueryCellInfo you cannot influence other cells in your record, but you can cache values with some fields in your class where you save the display element and the settings you want to apply to these columns.
In your QueryCellInfo (probaly best done in an extra metjod) you compare the display element with the saved element field and only if the queried display element is different from the previously query display element that you update the colum settings and save them in your other fiels.
QueryCellInfo then simply returns the values from those fields.
Stefan
>Hi Klaus,
>
>The GridGroupingControl is a column/row-oriented grid, and not cell oriented like GridControl. So in order to set the style for a single cell the QueryCellStyleInfo event must be handled.
>The table can also be checked using the TableDescriptor Name: e.TableCellIdentity.DisplayElement.ParentTableDescriptor.Name.
>
>Regards,
>Calvin.