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

Asp.net DataTable to lightweight Data Table

4 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Aurélien Dubosson
Top achievements
Rank 1
Aurélien Dubosson asked on 29 Apr 2010, 11:15 AM
Hi everyone,

Is there a way to obtain the lightweight Data Table with a Asp.net DataTable send by a webservice without using IEnumerable<Dictionnary...>> ?

In my webservice, I return a datatable and I wish to get data into your lightweight DataTable. I try a 

var table = new DataTable(e.Result) but he will a IEnumerable...


Thanks in advance.

Regards.

Aurélien Dubosson

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Apr 2010, 11:45 AM
Hello Aurélien,

Have you tried the code in this blog post?

Regards,
Vlad
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Aurélien Dubosson
Top achievements
Rank 1
answered on 29 Apr 2010, 11:49 AM
Hi Vlad,

I don't want to use IEnumerable<Dictionnary> ... I wish directly from Asp.net DataTable to your lightweight DataTable.

Best regards.

Aurélien Dubosson
0
Vlad
Telerik team
answered on 29 Apr 2010, 11:51 AM
Hello Aurélien,

You cannot serialize DataTable to a Silverlight application by default.

Kind regards,
Vlad
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Aurélien Dubosson
Top achievements
Rank 1
answered on 29 Apr 2010, 12:17 PM
Maybe could I use Linq to XML with the ArrayofXelement that I get with the webservice to fill my datatable in Silverlight ?

or any Idea how to travel an ArryofXelement ?

Best regards.

Aurélien Dubosson
Tags
GridView
Asked by
Aurélien Dubosson
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Aurélien Dubosson
Top achievements
Rank 1
Share this question
or