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
20
XamDataGrid LoadCustomization issue, cannot add any further rows
posted

I have an application where we allow the user to save custom layouts for a grid.  This is done in a behavior.  The user can have a separate layout for different products, this is handled with an attached property on the behavior when the user change the selected product and make changes to the grid layout. When the application loads, the layout, if any will be loaded.  Everything works find up to this point, the layout is loaded and the grid is still enabled to add further rows.  The problem is when the selected product is changed, and the layout  reloaded for the  product.  The correct layout is loaded, but the ability to add rows seems to disappear or being reset, when looking into the visual tree the AllowAddNew flag is still true, nothing else seems to have changed.  I attached a small sample project that illustrates the problem.  

I will appreciate if someone could have a look at the sample project and advise on a way around this or is this a known issue?  

Regards

4024.WpfApp1.zip