ASPxGridViewExportRenderingEventArgs.RowType Property
Gets the processed row’s type.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public GridViewRowType RowType { get; }
#Property Value
Type | Description |
---|---|
Grid |
A Grid |
Available values:
Name | Description |
---|---|
Data | Corresponds to a data row. |
Group | Corresponds to a group row. |
Preview | Corresponds to a preview row. |
Detail | Corresponds to a detail row. |
Inline |
Corresponds to the in-line edit row. |
Edit |
Corresponds to a row that contains the Edit Form. |
Editing |
Corresponds to the Error Row. |
Footer | Corresponds to the ASPx |
Group |
Corresponds to a group footer. |
Filter | Corresponds to the Filter Row. |
Empty |
Corresponds to the Empty Data Row. |
Pager |
Corresponds to an empty data row. Empty data rows are automatically displayed if the ASPx |
Title | Corresponds to the ASPx |
Header | Corresponds to the ASPx |
Batch |
Corresponds to a pattern for new data rows in batch edit mode. The pattern is created on request processing, and then passed to the client to be dynamically duplicated and displayed as new rows during client batch editing. |
#Remarks
protected void ASPxGridViewExporter1_RenderBrick(object sender, ASPxGridViewExportRenderingEventArgs e) {
GridViewDataCheckColumn checkColumn = e.Column as GridViewDataCheckColumn;
if(e.RowType == GridViewRowType.Data && checkColumn != null && checkColumn.FieldName == "Boolean") {
object value = e.Value;
if(value == null || value == DBNull.Value)
e.Text = "NULL";
else if(value is bool) {
e.Text = (bool)value ? "1" : "0";
}
}
}
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RowType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.