DataTable Support
With R1 2022 Release of Telerik UI for Xamarin, DataGrid fully supports binding to a DataTable
.
All DataGrid features work with DataTable. You can add, remove, select, edit item(s) and update the DataGrid's ItemsSource. In addition, all available commands and operations like filtering, sorting, grouping, selection work when the DataGrid is bound to a DataTable.
Bind to DataTable
-
DataGrid definition:
-
Add the namespace:
-
The ViewModel used:
Where the DataTable namespace is using System.Data;
Filtering, Sorting, Grouping
When using DataTable you can filter, group, sort the data inside the DataGrid through the UI or programatically.
CRUD Operations with DataTable
All operations like add, remove, update data inside the DataGrid is supported when the Source is from DataTable.
DataGrid definition:
Add row
Delete row
Update data
Examples
A sample Bind to DataTable example can be found in the DataGrid/DataTable folder of the SDK Samples Browser application.
A sample CRUD Operations example can be found in the DataGrid/DataTable folder of the SDK Samples Browser application.
A sample Commands example can be found in the DataGrid/DataTable folder of the SDK Samples Browser application.