Anil
Anil

Reputation: 37

can I consume a method in Silverlight of WCF which returns datatable?

I want to create custom datatable in WCF method and want to return. Is it possible? If not tell me optional way to use datatable in silverlight.

Upvotes: 0

Views: 354

Answers (1)

user
user

Reputation: 6947

At least when I last looked (which was around the time of Silverlight 3), DataTable (actually, IIRC, the entire System.Data namespace) was not included in Silverlight. The workaround was to convert the data into a List<T> representation on the WCF (server) side, then let the server and client side share the implementation of the type T. That allows them to share sets of data.

Not sure if this has changed in Silverlight 4.

Upvotes: 1

Related Questions