We are displaying a xamGrid in a child window and populating it in response to a event from another part of the application.
We have just started getting the following unhandled exception:
Handling ID = 00000000-0000-0000-0000-000000000000
An exception of type 'System.NullReferenceException' occurred and was caught.-----------------------------------------------------------------------------01/30/2013 14:15:38Type : System.NullReferenceException, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMessage : Object reference not set to an instance of an object.Data : System.Collections.ListDictionaryInternalStack Trace : at Infragistics.Controls.Grids.Primitives.RowsPanel.ResetRows(Boolean releaseAll) at Infragistics.Controls.Grids.Primitives.RowsPanel.<>c__DisplayClass2.<ResetRows>b__0()
Additional Info:
TimeStamp : 30/01/2013 14:15:38FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Silverlight, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35AppDomainName : Silverlight AppDomain
Unfortunately we can't split out this part of the application to get a repeatable case, so all we are after is a guide to where we should be looking to track this down and fix the problem.
We are using version 11.2.20112.2178.
With the previous version we didn't have this problem.
Hello Chris,
Thank you for your post. I have been looking into it and since this is not a known issue I cannot be completely sure what can cause such behavior. I can suggest you track whether the XamGrid is fully rendered when you set its ItemsSource. Also if you could create a sample project where this is reproduced I will be happy to assist you further.
As I said in my original post I don't think it is possible to create a simple application that will demonstrate the problem.
I've experimented with not setting the ItemsSource until the grid has loaded but this hasn't had any effect on the problem. The exception seems to be being raised before the data is read anyway.
Can you tell me what could be null in Infragistics.Controls.Grids.Primitives.RowsPanel.ResetRows(Boolean releaseAll)?