This is a migrated thread and some comments may be shown as answers.

Fill DataGrid with datatable

2 Answers 223 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 29 Dec 2019, 09:06 AM

Hey,

How can I fill my DataGrid with datatable?

I need just to show details in the datagrid and I dont want create new class for that.

When I set datatable as ItemSource it throws the following excpetion : System.InvalidOperationException: 'Specified data source not supported'

 

What should I do? 

Thanks :)

2 Answers, 1 is accepted

Sort by
0
Itai
Top achievements
Rank 1
answered on 29 Dec 2019, 11:07 AM
Resolved this by creating ObservableCollection of objects and enter the values there.
0
Didi
Telerik team
answered on 30 Dec 2019, 07:31 AM

Hello,

I am afraid RadDataGrid does not support direct binding to DataTable object, we have it logged as a feature request in our public feedback portal, please cast your vote and track its status at the link below:

https://feedback.telerik.com/xamarin/1366482-datagrid-add-ability-to-bind-system-data-datatable-or-dataview

As a solution you can use the approach you have found.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Itai
Top achievements
Rank 1
Answers by
Itai
Top achievements
Rank 1
Didi
Telerik team
Share this question
or