Silverlight: Binding Dynamic Data to a DataGrid?

One solution is to pass the DataSet Column Information and DataSet XML to the silverlight. On the Silverlight side build a Dynamic Data Object based on those data with functions provided by System.Reflection. Emit namespace.

Then bind the List of dynamically build DataObject to the DataGrid. The Dynamic Data Object will have one property for each column in the DataSet with the same DataType.

My personal answer would be to not use DataSets (I think they're quite horrid anyway); instead make your WCF services return business objects, preferably with the help of some ORM framework (Entity Framework, NHibernate etc.) to make it easier.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions