Skip to main content
Tab

ASPxVerticalGrid.HtmlDataCellPrepared Event

Enables the settings of individual cells to be changed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public event ASPxVerticalGridDataCellEventHandler HtmlDataCellPrepared

Event Data

The HtmlDataCellPrepared event's data class is ASPxVerticalGridDataCellEventArgs. The following properties provide information specific to this event:

Property Description
Cell Gets the processed data cell.
CellValue Gets the processed cell’s value.
KeyValue Gets the processed record’s key. Inherited from ASPxVerticalGridRecordEventArgs.
Row Gets the record that owns the cell currently being processed.
VisibleIndex Gets the processed record’s visible index. Inherited from ASPxVerticalGridRecordEventArgs.

The event data class exposes the following methods:

Method Description
GetValue(String) Returns the value of the specified cell within the processed record.

Remarks

The HtmlDataCellPrepared event is raised for each data cell in the ASPxVerticalGrid when the corresponding table cell is created. You can handle this event to change the style settings of individual cells.

Note

During export operations, the Vertical Grid control ignores appearance settings specified in the HtmlDataCellPrepared event handler. To customize exported elements, handle the ExportRenderBrick event or specify the StylesExport property.

The processed cell is identified by the event parameter’s ASPxVerticalGridDataCellEventArgs.Cell property. Its value is returned by the ASPxVerticalGridDataCellEventArgs.CellValue property. The column and row where the processed cell resides can be obtained via the ASPxVerticalGridDataCellEventArgs.Row and ASPxGridViewItemEventArgs.KeyValue properties.

See Also