Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxGridDataColumn.SearchEnabled Property

Specifies whether the Grid can search text in cells of the current column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(true)]
[Parameter]
public bool SearchEnabled { get; set; }

#Property Value

Type Default Description
Boolean true

true if search in the current column is enabled; otherwise, false.

#Remarks

The Grid component seeks the search text in every visible data column cell. Use the SearchEnabled property to exclude a specific column from search operations.

razor
<DxGrid Data="@Data" ShowSearchBox=true SearchBoxNullText="Search for a company...">
    <Columns>
        <DxGridDataColumn FieldName="CompanyName" />
        <DxGridDataColumn FieldName="ContactName" SearchEnabled="false"/>
        <DxGridDataColumn FieldName="City" SearchEnabled="false"/>
        <DxGridDataColumn FieldName="Country" SearchEnabled="false"/>
    </Columns>
</DxGrid>

Search Box Overview

For more information about search in the Grid component, refer to the following topic: Search Box in Blazor Grid.

#Implements

See Also