Templating
DataFormatString - Simple Formatting
Use DataFormatString for simple formatting without templates. Supports standard .NET format strings like "C" (currency), "N2" (number with 2 decimals), "P" (percentage), and "d" (short date).
Format Examples:
DataFormatString="C"→ Currency: $1,234.56DataFormatString="N0"→ Integer: 1,234DataFormatString="N2"→ Number: 1,234.56DataFormatString="P2"→ Percentage: 45.67%DataFormatString="d"→ Short date: 12/31/2024DataFormatString="D"→ Long date: Tuesday, December 31, 2024
Custom Cell Templates
Custom cell rendering using Badge for status and formatted currency for amounts. For simple formatting, consider using DataFormatString instead.
Custom Header Templates
Custom header rendering with icons for enhanced visual hierarchy.
Row Actions
Action buttons that trigger C# methods via data-action attributes. Uses Blazor components with automatic event binding.
Conditional Styling
Dynamic CSS classes applied based on data values (high-value orders in green, cancelled in red).