ASPxGridViewExportRenderingEventArgs.RowType Property
Gets the processed row’s type.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
GridViewRowType | A GridViewRowType enumeration value that identifies the processed row’s type. |
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. |
InlineEdit | Corresponds to the in-line edit row. |
EditForm | Corresponds to a row that contains the Edit Form. |
EditingErrorRow | Corresponds to the Error Row. |
Footer | Corresponds to the ASPxGridView’s Footer. |
GroupFooter | Corresponds to a group footer. |
Filter | Corresponds to the Filter Row. |
EmptyDataRow | Corresponds to the Empty Data Row. |
PagerEmptyRow | Corresponds to an empty data row. Empty data rows are automatically displayed if the ASPxGridViewPagerSettings.ShowEmptyDataRows option is enabled, and the number of data rows displayed on the last page does not fill the page. |
Title | Corresponds to the ASPxGridView’s Title Panel. |
Header | Corresponds to the ASPxGridView’s column header row. |
BatchEditNewDataRow | 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.