Skip to main content

WebDataSelection.FilteredCount Property

Gets the number of selected grid rows that meet the filter conditions.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public int FilteredCount { get; }

Property Value

Type Description
Int32

The number of rows.

Remarks

The FilteredCount property allows you to get the number of selected rows that meet the filter confitions. To get the number of all selected rows, use the Count property.

<dx:ASPxGridView ID="Grid" runat="server" AutoGenerateColumns="False" OnCustomCallback="Grid_CustomCallback">
    <Columns>
        <dx:GridViewCommandColumn ShowSelectCheckbox="true" />
        <!-- ... -->
    </Columns>
    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
</dx:ASPxGridView>
protected void Grid_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e) {
    var gridView = (ASPxGridView)sender;
    var count = gridView.Selection.FilteredCount;
    // ...
}
See Also