Skip to main content
A newer version of this page is available. .
Tab

ASPxVerticalGrid.HtmlDataCellPrepared Event

Enables the settings of individual cells to be changed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.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.

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