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
925
xamPivotGrid Error when data source is already populated
posted

Hi,

I am building a Silverlight application using Prism 4. An extended version of the Infgragistics DataSourceBase is being used to supply data to a xamPivotGrid as well as other types of visualisation i.e. Column Chart, Bar Chart, Stacked Column etc.

If the data source has been populated with measures, rows or columns and the view is switched to the pivot grid (using Prism's view discovery) the grid fails to initialize with the following error:

{System.NullReferenceException: Object reference not set to an instance of an object.
   at Infragistics.Controls.Grids.PivotGridLayout.InitializeLayout()}

If the pivot grid is accessed prior to any dimensions or measures being added then it works as expected.

Any advice would be greatly appreciated as this is really holding us up at the moment.

Regards,

Chris