Save $100 with promo code CHEERS2025

As we are looking forward to an incredible 2025, enjoy our end-of-year promotion! Valid now through January 6th.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Default filter value for DataGrid column (Blazor)

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

Step by step

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.

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

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

5. Run the application