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

DxGrid.SearchBoxNullText Property

Specifies the prompt text displayed in the search box when it is empty.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string SearchBoxNullText { get; set; }

#Property Value

Type Default Description
String null

A string value that specifies the prompt text.

#Remarks

When the ShowSearchBox property is set to true, the Grid displays the search box. Users can type text in the box editor to filter and highlight data. Use the SearchBoxNullText property to specify the prompt text displayed in the search box when the editor is empty.

razor
<DxGrid Data="@Data" ShowSearchBox=true PageSize="6" 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