Selection
Custom ID Field
Configure the ID field for stable row identification across data updates, sorting, and pagination. This is critical for maintaining selection state when data changes.
0 product(s) selected
Why IdField Matters
- Selection persists across data updates and pagination
- Rows maintain stable identity during sorting/filtering
- Default is "Id" (C# convention) - works with most models
- Customize for models with different primary key names
Single Row Selection
Radio-style single row selection with visual feedback.
No order selected
Multiple Row Selection
Checkbox-based multiple row selection with select all functionality.
0 of 50 row(s) selected
Controlled Selection State
Programmatic control of selection with external buttons.
0 row(s) selected programmatically
Tracked Observable Collection (Automatic Delta Updates)
DataGrid automatically detects and applies delta changes when using TrackedObservableCollection. Only changed rows are updated - no full grid refresh needed!
0 of 50 row(s) selected
Performance Benefits
- Delta Updates: Only modified rows are re-rendered (not entire grid)
- Selection Preserved: Row selection survives data changes automatically
- Natural Mutations: Modify items directly, then call NotifyItemsChanged()
- Batching: Multiple rapid changes are batched together (100ms window)
- Efficient: Uses AG Grid's transaction API for minimal DOM updates