Back to Devexpress

DxGridDataColumn.SearchEnabled Property

blazor-devexpress-dot-blazor-dot-dxgriddatacolumn-9db5cf7d.md

latest1.8 KB
Original Source

DxGridDataColumn.SearchEnabled Property

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

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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>

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

Implements

SearchEnabled

See Also

DxGridDataColumn Class

DxGridDataColumn Members

DevExpress.Blazor Namespace