且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Xml绑定到Silverlight数据网格

更新时间:2022-06-22 02:15:52

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