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
180
Same FieldLayout in 2 different XamDataGrid
posted

Hi,

is there any way to assign a FieldLayout instance (stored as a resource) to 2 XamDataGrid?
The problem is the following. I have a XamTabControl and I want to load a XamDataGrid into each TabItem but with the same FieldLayout settings.
As my first step I created a FieldLayout resource and set up the FieldLayout property. That's ok. But at the second TabItem there is an error:
"Field can not be moved to another collection."
Is there any way to clone or copy (or something else) this class? One of the points is that we can't know how many TabItems will be exactly, so
setting up 2 FieldLayout resource would not be a right solution.
Should I create a special collection with the fields' descriptions and create them from code inside for example a foreach statement? 

Thank you for your replies in advance.

Regards,
atus