将数据集返回到Silverlight DataGrid [英] Return a dataset to silverlight datagrid

查看:70
本文介绍了将数据集返回到Silverlight DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个数据集,其中根据选定的参数动态填充列.我应该如何在WCF服务中获取此数据,以便可以在Silverlight 3.0中将数据绑定到datagrid?
Kanthi.

Hi,
I have a dataset where columns are dynamically populated depending on the parameters selected. how should i fetch this data in WCF service so that I can bind the data to datagrid in the silverlight 3.0?
Kanthi.

推荐答案

Silverlight不支持数据集.

因此,最好的选择是将数据集放入一个集合中(在服务器端). WCF服务可以将此集合返回到UI,UI可以对其进行选择,然后将其绑定到datagrid.

如果在Internet上搜索"Silverlight和WCF",则会发现大量此类样本,因此我不提供任何链接.
Datasets are not supported in Silverlight.

So your best bet would be to put the dataset into a collection (on the server side). The WCF service can return this collection to the UI which can pick it up and then bind it to the datagrid.

If you search on the internet for "Silverlight and WCF", you will find tons of such samples, so I''m not providing any links.


这篇关于将数据集返回到Silverlight DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆