This example uses a custom data source and binds it to the DevExpress Blazor Grid via Entity Framework Core.
Our Blazor Grid component supports multiple data binding options. If our standard data source bindings do not meet specific business requirements, you can implement your own data provider. To do so, create a GridCustomDataSource descendant and assign it to the Grid Data property. As a starting point, simply use the OrdersDataSource class implementation and modify it based on your use case/requirements.
Note the following Grid-related limitations when using a custom data source:
- Custom sorting is unavailable.
- Interval/custom grouping is unavailable.
- Search, filter, sorting, and grouping against display text are unavailable.
- Sorting, filtering, or data grouping during select/deselect all processing cancels the operation.
- Custom summary calculation is unavailable.
- Unbound columns are unsupported.
- To call the SetFocusedDataItemAsync method, you must specify the KeyFieldName/KeyFieldNames property value.
AllPages
mode (Select All checkbox) is unsupported.- SelectAllAsync and DeselectAllAsync methods load all data and can impact overall performance and increase memory consumption.
- A second call to the SelectAllAsync/DeselectAllAsync method cancels the operation initiated by a previously called method.
- Blazor Grid - ExpandoObject Collection Support
- Blazor Grid – Binding to a DevExtreme Data Source with Entity Framework Core
(you will be redirected to DevExpress.com to submit your response)