Blazor DataGrid Example - ExpandoObject Binding
Drag a column header here to group its column
Order ID Press Enter to sort. Press Ctrl space to group | Customer ID Press Enter to sort. Press Ctrl space to group | Freight Press Enter to sort | Order Date Press Enter to sort. Press Ctrl space to group | Ship Country Press Enter to sort. Press Ctrl space to group | Active Press Enter to sort. Press Ctrl space to group |
|---|---|---|---|---|---|
| No records to display |
This sample demonstrates how to use ExpandoObject data binding with comprehensive DataGrid features including CRUD operations, grouping, sorting, filtering, and aggregation.
The Blazor DataGrid supports ExpandoObject data binding, providing dynamic schema flexibility. The DataSource property accepts a list of ExpandoObject instances.
The Type property of the GridColumn component allows you to define the ColumnType based on the data type. In this demo, Integer and Double column types are configured for the OrderID and Freight columns.
For more detailed information about ExpandoObject data binding, refer to the ExpandoObject binding documentation.