Sort a Blazor DataGrid column with custom logic - supply your own IComparer to order values any way you need, such as ordering ids by their mapped display name. Custom comparers apply to in-memory data only.
Reference | Priority |
|---|---|
| ORD-001 | Urgent |
| ORD-002 | Normal |
| ORD-003 | Critical |
| ORD-004 | Normal |
| ORD-005 | Urgent |
Set the column's SortComparer to an IComparer implementation; the grid uses it instead of the default comparison.
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