Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1285
How to create the dynamic fields with different collections
posted

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

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

Children
No Data