Example of DataTable Binding in Blazor DataGrid Component
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 | Customer Name | Order Date | Employee ID | Freight |
---|---|---|---|---|
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.