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
470
IndexOutOfRangeException in XamDataPresenter when loading customizations with dynamic fields
posted

We have an application where we add and remove different columns from the XamDataPresenter.  Before they are removed, the customizations are saved and different customizations are loaded after the new columns are added.  This causes an IndexOutOfRangeException.  The reason for that apears to be a bug in which some of the associated filters are not removed when the columns are removed.

I've attached a repro.  Just keep clicking the button until it crashes.  It has crashed on me when Load Customizations has been called three or four times.

The repro was created with the 10.3 dlls, but I've seen the same thing happen in 11.2 and 12.1, so it should crash on those as well.

Is there a good workaround for this?

DataPresenterBug.zip