Hi, I am trying to create dynamic columns and attach the custom object which has dictionary collection and I would like to display them in the xamdatagrid. I was able to create one with standard datagrid but could not do the same with xamdatagrid. Any resources,links,pointers will help. I have attached the sample that I created with standard datagrid.
Thanks
Raghavendra
Hello,
Thank you for your post.
I have been looking into your issue. I created a short sample application based on your scenario to show you how you can implement the functionality that you want.
In the sample I set the AutoGenerateFields to False and handle the FieldLayoutInitialized event of XamDataGrid to generate the fields dynamically. In the event handler I loop thought the keys in Items, create an unbound fields for each item and add it to the FieldLayout of XamDataGrid.
Please let me know if you need any further assistance on this matter.
I am just checking if there is anything else I can do for you.
Hi Zhivko,is there any wat to do the same thing without code-behind? We're using MVVM pattern and code-behind will break all the structure.Thanks in advance,Daniel
Hello Daniel,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I have been looking into your post and I suggest to take a look at the following forum thread, where similar functionality is discussed:
http://es.infragistics.com/community/forums/t/51523.aspx
Thank you for using Infragistics Components.