In my Viewmodel, depending upon given datatype I am generating column( using reflection get all properties of datatype and use them to create appropriate datagrid column) and adding it to Columns collection. Now I want to bind this Collection to my datagrid's columns property, like below:
<DataGrid Columns="{Binding VMColumnCollection}" />
Please let me know how to achieve this without breaking MVVM ?