Back to Devexpress

ASPxVerticalGridExporter.RenderBrick Event

aspnet-devexpress-dot-web-dot-aspxverticalgridexporter-388f95ae.md

latest3.7 KB
Original Source

ASPxVerticalGridExporter.RenderBrick Event

Enables rendering of different content from the default export.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxVerticalGridRenderBrickEventHandler RenderBrick
vb
Public Event RenderBrick As ASPxVerticalGridRenderBrickEventHandler

Event Data

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

PropertyDescription
BrickStyleGets the appearance settings used to paint report bricks.
ExportPartGets which part of the ASPxVerticalGrid is currently being exported.
ImageValueGets or sets an array of bytes that contains the processed brick’s image.
KeyValueGets the processed record’s key.
RowGets a record that corresponds to the processed grid element.
TextGets or sets the text displayed within the brick currently being rendered.
TextValueGets or sets the processed brick’s value.
UrlGets or sets the rendered brick’s URL.
ValueGets the processed data cell’s value.
VisibleIndexGets the processed record’s visible index.
XlsxFormatStringSpecifies the format string applied to the processed brick’s value when exporting to Excel format (XLS or XLSX).

The event data class exposes the following methods:

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

Remarks

Note

The RenderBrick event does not fire when export data in DataAware mode. The DataAware mode is enabled by default when you export the grid to an XLS, XLSX or CSV file. In this case, you can disable the DataAware mode by setting the ASPxGridViewExportSettings.ExcelExportMode to ExportType.WYSIWYG or use the XlsExportOptionsEx.CustomizeCell or XlsxExportOptionsEx.CustomizeCell event instead the RenderBrick.

See Also

ASPxVerticalGridExporter Class

ASPxVerticalGridExporter Members

DevExpress.Web Namespace