OnDefineCssClass - cWebColumnDate
Used to define a custom CSS class for each cell in this column
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| ByRef sCSSClass | String | [IN/OUT] The default CSS class for this column is passed in. Set this parameter value to modify the CSS class for a particular cell. |
Syntax
Procedure OnDefineCssClass ByRef String sCSSClass
Description
This event is fired for each row that is sent to the client and can be used to provide a custom CSS class name for individual cells.
For data aware grids / lists, the global buffers will contain the right records at the time the event is fired.
This event does not fire for manually loaded grids, and you will have to set psCSSClass for each cell in OnManualLoadData.
By modifying the CSS class in this way you can apply different styles in individual cells in this column. This can be based on the cell's value.