blazor-devexpress-dot-blazor-dot-dxgrid-b241f122.md
Specifies the prompt text displayed in the search box when it is empty.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(null)]
[Parameter]
public string SearchBoxNullText { get; set; }
| Type | Default | Description |
|---|---|---|
| String | null |
A string value that specifies the prompt text.
|
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.
<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>
For additional information about search in the Grid component, refer to the following topic: Search Box in Blazor Grid.
See Also