Blazor DataGrid Example - DataTable Binding
This sample shows how to use DataTable data binding with CRUD operations, grouping, sorting, filtering, and aggregation in the DataGrid component.
Drag a column header here to group its column
Order ID Press Enter to sort. Press Ctrl space to group | Customer Name Press Enter to sort. Press Ctrl space to group | Order Date Press Enter to sort | Employee ID Press Enter to sort. Press Ctrl space to group | Freight Press Enter to sort |
---|---|---|---|---|
No records to display |
DataTable represents a table with data rows and columns. Data binding of the DataTable can be achieved in the DataGrid component by providing the CustomAdaptor class and overriding the Read or ReadAsync method of the DataAdaptor abstract class.
To bind DataTable to the datagrid, you can assign TValue to the ExpandoObject. You can perform DataTable data binding with CRUD operations, grouping, sorting, filtering, and aggregation in the DataGrid component.
More information about the DataTable data binding feature can be found in this documentation section.