将Xml绑定到Silverlight数据网格 [英] Bind Xml to Silverlight Data Grid

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

问题描述

亲爱的朋友,

我们如何在Silverlight中将XML绑定到数据网格实际上,我是从
以xml格式返回数据集 每次列名都不同时进行服务,然后在这种情况下如何绑定xml
到Datagrid.有任何帮助.

谢谢和问候,
Muneer

Dear Friends,

How Can We Bind XML to Data Grid in Silverlight Actually i am returning dataset as xml from the
Service each time the Column Names are different then in this Situation how can i bind my xml
to Datagrid.Any Help Appreciable.

Thanks and Regards,
Muneer

推荐答案

hi 直接地,我们不能将XML数据绑定到Silverlight Datagrid,我们需要创建一个XML数据类对象并创建该对象的Collection并将其设置为ItemSource到DataGrid,然后它才能工作.

http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated


问候
西拉子(Siraz)
hi Directly we can''t bind the XML Data to Silverlight Datagrid we need to create a data class object w r that XML data and make a Collection of that object and set as ItemSource to the DataGrid then only it will Work.

http://www.scottlogic.co.uk/blog/colin/2010/03/binding-a-silverlight-3-datagrid-to-dynamic-data-via-idictionary-updated


Regards
Siraz


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

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