DxDataGridColumn.AllowFilter Property

Specifies whether users can filter grid data against this column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
[DefaultValue(null)]
public bool? AllowFilter { get; set; }

Property Value

Type Default Description
Nullable<Boolean>

null

null or true to display the column editor in the filter row; false to hide the editor.

Remarks

Enable the grid’s ShowFilterRow option to display a row that allows users to filter data. This row displays different in-place editors depending on the column types. To prevent users from filtering data by individual columns, set their AllowFilter property to false.

<DxDataGrid Data="@DataSource"
            ShowFilterRow="true">
    @*...*@
    <DxDataGridColumn Field="@nameof(Order.Product)"
                      AllowFilter="false">
    </DxDataGridColumn>
    @*...*@
</DxDataGrid>

DataGrid Allow Filter

Run Demo: Data Grid - Filter Row

See Also