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
845
NullReferenceException from xamGrid in a child window
posted

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:38
Type : System.NullReferenceException, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
Message : Object reference not set to an instance of an object.
Data : System.Collections.ListDictionaryInternal
Stack 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:38
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Silverlight, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : 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.

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

Children