GridViewCustomBindingGetDataRowCountArgs.DataRowCount Property
Gets or sets the total number of data rows within a custom model, taking into account the filtering applied within the grid (if any).
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the total number of data rows within a model. |
Remarks
Assign the DataRowCount property with the total number of rows in your model. The returned total number should depend upon the filtering conditions (if they were applied to the grid). Use the GridViewCustomBindingArgsBase.FilterExpression property to obtain the grid’s filter expression and apply it to your model to obtain the proper number of rows that meet the filter.
Refer to Implementation of Typed Method Delegates to learn more.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataRowCount 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.