Back to Devexpress

ASPxVerticalGrid.HtmlDataCellPrepared Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-7570ff0f.md

latest3.5 KB
Original Source

ASPxVerticalGrid.HtmlDataCellPrepared Event

Enables the settings of individual cells to be changed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxVerticalGridDataCellEventHandler HtmlDataCellPrepared
vb
Public Event HtmlDataCellPrepared As ASPxVerticalGridDataCellEventHandler

Event Data

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

PropertyDescription
CellGets the processed data cell.
CellValueGets the processed cell’s value.
KeyValueGets the processed record’s key. Inherited from ASPxVerticalGridRecordEventArgs.
RowGets the record that owns the cell currently being processed.
VisibleIndexGets the processed record’s visible index. Inherited from ASPxVerticalGridRecordEventArgs.

The event data class exposes the following methods:

MethodDescription
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

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace