Select theme:

Default filter value for DataGrid column (Blazor)Link to this section

This guide demonstrates how to set default filter value for DataGrid column.

Step by stepLink to this section

1. Create new application with .NET server-side project and add new MSSQL data-source connected to Northwind database.

2. Create new Orders page and bind DataGrid to Orders table. image image image

3. Add new Page property defaultOrderID and bind DataGrid OrderID column to defaultOrderID. image

4. Override OnAfterRender in the Page partial class, set FilterValue for OrderID and execute DataGrid Reload() for the first render. image

5. Run the application image

In this article -
© 2016-2026 Radzen Ltd. All Rights Reserved.
Designed and developed with ❤️ in Radzen Blazor Studio.
IP Geolocation by DB-IP

Select theme: