Hi
I have a silverlight datagrid control and columns autogenerate property is set to false. I am using MVVM and wants to bind the columns collection.
The data which i get is from xml. Something similar to sample code
http://blogs.msdn.com/b/deepak_verma/archive/2008/07/19/dynamic-creation-binding-of-silverlight-datagrid.aspx
Now by passing the datagrid control from xmal file to the modelview I can get the expected behavior but with that way , i am adding columns in the datagrid control.
Is there any way, so that I can bind the columns collection with the datagrid control so that no need to pass the control to view model.
-Rajesh