Null Reference Exception at Syncfusion SfDataGrid.OnLayout

StrackTrace :  Getting Object Null reference error

02-19 11:16:29.555 I/MonoDroid( 9105): UNHANDLED EXCEPTION:
02-19 11:16:29.558 I/MonoDroid( 9105): System.NullReferenceException: Object reference not set to an instance of an object.
02-19 11:16:29.558 I/MonoDroid( 9105):   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.46(intptr,intptr,bool,int,int,int,int)
02-19 11:16:29.558 I/MonoDroid( 9105):   at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.46(intptr,intptr,int,int,int,int,int)
02-19 11:16:29.558 I/MonoDroid( 9105):   at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a(intptr,intptr&,intptr,intptr,intptr,intptr)
02-19 11:16:29.558 I/MonoDroid( 9105):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00079] in <42748fcc36b74733af2d9940a8f3cc8e>:0 
02-19 11:16:29.558 I/MonoDroid( 9105):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001f] in <42748fcc36b74733af2d9940a8f3cc8e>:0 
02-19 11:16:29.558 I/MonoDroid( 9105):   at Android.Views.ViewGroup.Layout (System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00062] in <9a14097a65a445eaa85f6a3a1ade52a3>:0 
02-19 11:16:29.558 I/MonoDroid( 9105):   at Syncfusion.SfDataGrid.SfDataGrid.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x000c0] in <c2b22c4a8c934e06a2db6913e30a8fa8>:0 
02-19 11:16:29.558 I/MonoDroid( 9105):   at Android.Widget.FrameLayout.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x00008] in <9a14097a65a445eaa85f6a3a1ade52a3>:0 

1 Reply

CS Chandrasekar Sampathkumar Syncfusion Team February 22, 2021 07:12 AM UTC

Hi Bharath, 
Thank you for using Syncfusion products. 
Could you please share the following details which would be helpful for us to check on it and provide you solution at the earliest, 
  • Xamarin.Forms version and Syncfusion version used in your application
  • DataGrid control related code snippets
  • Page or View the DataGrid is loaded
Regards, 
Chandrasekar Sampathkumar 


Loader.
Up arrow icon