Filter Blazor DataGrid columns by enum values - the grid lists the enum members as filter options so users pick from a friendly list.
ID | Gender | Nullable Status | Favorite Color (Display Attribute in Filter) |
|---|---|---|---|
| 0 | Mr | Active | Red |
| 1 | Mr | Active | Red |
| 2 | Mr | Active | Almond Green |
| 3 | Ms | Inactive | Almond Green |
| 4 | Ms | Inactive | Apple Blue... |
| 5 | Ms | Inactive | Apple Blue... |
| 6 | Unknown | Azure | |
| 7 | Unknown | Azure | |
| 8 | Unknown | Azure | |
| 9 | Unknown | Azure |
Bind the column to the enum property; the filter offers the enum values, and you can use Description attributes for friendly labels.
Get an email when new components and releases ship.
With Radzen Blazor subscription you get the full toolkit, including:
Dedicated support backed by proven expertise
Premium themes and theme editor
Ready-to-use UI blocks
Complete app templates
Visual design-time-experience

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT
Premium Themes
Free Themes