Hi,
Currently, I am trying to implement fields creation dynamically.
But in my case, I have 2 observable collections. But i need to assign one collection of data to columns and another observable collection of data to rows of Xamdatagrid.
Ex: xamdatagrid1.DataSource = Employees;
here Employees is one data collection, if we try with above statement, it will automatically create the rows and columns;
But i observe that, with datatable we can loop through and create the Fields dynamically.
Could you please suggest me,how to assign the 2 different collections of data ..one for column and one for rows.
Thanks in advance,
Regards,
Chandra
Hello Chandra,
Thank you for your post. I have been looking into it and I can say that Fields collection is read-only, which means that you are not able to bind it or set to a new collection. You can only add, delete, modify, etc. the items in it.
Hope this helps you.