Back to Devexpress

DxGrid.ShowFilterRow Property

blazor-devexpress-dot-blazor-dot-dxgrid-599b9b4e.md

latest3.3 KB
Original Source

DxGrid.ShowFilterRow Property

Specifies whether the Grid displays the filter row.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool ShowFilterRow { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to display the filter row; otherwise, false.

|

Remarks

Enable the ShowFilterRow option to activate a row that allows users to filter Grid data. The filter row displays in-place text editors for all data columns. When a user types into an editor, the Grid creates a filter condition based on the editor value and applies this condition to the corresponding column.

razor
<DxGrid Data="@DataSource"
        ShowFilterRow="true">
    @*...*@
</DxGrid>

Run Demo: Data Grid - Filter Row View Example: Filter the column by multiple values View Example: Implement a date range filter

For additional information about the filter row, see the following topic: Filter Row in Blazor Grid.

Apply a Filter When a User Types Text

To filter data as a user types in the filter row, follow the steps below:

razor
<DxGridDataColumn Caption="Summary" FieldName="Summary">
    <FilterRowCellTemplate>
        <DxTextBox Text="@((string)context.FilterRowValue)" BindValueMode=BindValueMode.OnInput
                   TextChanged="(string v) => context.FilterRowValue = v" />
    </FilterRowCellTemplate>
</DxGridDataColumn>

Customize Filter Row Editors

You can customize filter row editors in the following ways:

Implements

ShowFilterRow

See Also

DxGrid Class

DxGrid Members

DevExpress.Blazor Namespace