System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.SwitchNestedTable(GridNestedTable nestedTable)
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.SwitchNestedTableAndRestore(GridNestedTable nestedTable)
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControl.Table_CurrentRecordContextChange(Object sender, CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.Syncfusion.Grouping.ITableEventsTarget.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.TableDescriptor.Syncfusion.Grouping.ITableEventsTarget.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.Table.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableBase.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.Table.NotifyLeaveRecordComplete(Boolean success, Element previousRecord)
at Syncfusion.Grouping.CurrentRecordManager.LeaveRecord(Boolean cancelEditIfNotValid)
at Syncfusion.Grouping.ChildTable.LeaveRecord(Boolean cancelEditIfNotValid)
at Syncfusion.Grouping.NestedTable.OnLeaveRecordCalled()
at Syncfusion.Grouping.CurrentRecordManager.LeaveRecord(Boolean cancelEditIfNotValid)
at Syncfusion.Grouping.CurrentRecordManager.NavigateTo(Element record, Boolean cancelEditIfNotValid, Boolean scrollInView)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlSelectRecords.BeginSelectCells(Int32 rowIndex, Int32 colIndex, Keys modifierKeys)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlSelectRecords.MouseDown(GridTableClickCellsEventArgs te)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.ProcessTableClickCellsMouseDown(GridTableClickCellsEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableClickCellsMouseController.MouseDown(MouseEventArgs e)
at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseDown(MouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlBeforeMouseDown(Object sender, CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.CancelMouseEventHandler.Invoke(Object sender, CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlMouseDown(CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnScrollControlMouseDown(CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.RaiseCancelMouseEvent(MouseEventArgs e, CancelMouseDelegate d)
catched at Syncfusion.Windows.Forms.ScrollControl.RaiseCancelMouseEvent(MouseEventArgs e, CancelMouseDelegate d) in :line 0
RA
Rajagopal
Syncfusion Team
December 28, 2007 09:29 PM UTC
Hi Sendhilraj,
Thanks for your interest in Syncfusion Products.
When exactly do you see this exception thrown in your application? What is the Essential Studio version that you are currently using? Please provide more information on this issue preferrably with a sample, so that we can look into this issue in depth and get back to you.
Regards,
Rajagopal
JC
John Conley
March 6, 2008 10:56 PM UTC
Hello. If I might chime in, I get this error when i try to open the Grid designer at design time. I'm using version 4.112.0.50
>Hi Sendhilraj,
Thanks for your interest in Syncfusion Products.
When exactly do you see this exception thrown in your application? What is the Essential Studio version that you are currently using? Please provide more information on this issue preferrably with a sample, so that we can look into this issue in depth and get back to you.
Regards,
Rajagopal
VK
Vitaly Knyazev
June 20, 2008 08:58 AM UTC
Same happens in my project but in run-time, when grid is left unattended for a while (workstation locked, remote session and then local session again) and then I click on a record cell and get "Object reference not set to an instance of an object" message box with following call stack in debug output window. Other grids on the same form still work fine.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.SwitchNestedTable(GridNestedTable nestedTable)
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.SwitchNestedTableAndRestore(GridNestedTable nestedTable)
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControl.Table_CurrentRecordContextChange(Object sender, CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.Syncfusion.Grouping.ITableEventsTarget.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.TableDescriptor.Syncfusion.Grouping.ITableEventsTarget.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.Table.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableBase.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
at Syncfusion.Grouping.Table.NotifyLeaveRecordComplete(Boolean success, Element previousRecord)
at Syncfusion.Grouping.CurrentRecordManager.LeaveRecord(Boolean cancelEditIfNotValid)
at Syncfusion.Grouping.CurrentRecordManager.DeactivateRecord(Table table, Table notThisTable)
at Syncfusion.Grouping.CurrentRecordManager.DeactivateRecord(Table table, Table notThisTable)
at Syncfusion.Grouping.CurrentRecordManager.EnterRecord(Element record)
at Syncfusion.Grouping.CurrentRecordManager.NavigateTo(Element record, Boolean cancelEditIfNotValid, Boolean scrollInView)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlSelectRecords.BeginSelectCells(Int32 rowIndex, Int32 colIndex, Keys modifierKeys)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlSelectRecords.MouseDown(GridTableClickCellsEventArgs te)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.ProcessTableClickCellsMouseDown(GridTableClickCellsEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableClickCellsMouseController.MouseDown(MouseEventArgs e)
at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseDown(MouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlBeforeMouseDown(Object sender, CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.CancelMouseEventHandler.Invoke(Object sender, CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlMouseDown(CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnScrollControlMouseDown(CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.RaiseCancelMouseEvent(MouseEventArgs e, CancelMouseDelegate d)
>Hi Sendhilraj,
Thanks for your interest in Syncfusion Products.
When exactly do you see this exception thrown in your application? What is the Essential Studio version that you are currently using? Please provide more information on this issue preferrably with a sample, so that we can look into this issue in depth and get back to you.
Regards,
Rajagopal
VK
Vitaly Knyazev
June 20, 2008 09:00 AM UTC
Suppose something gets brocken in grouping mode with custom group sorting - had lots of problems with that. But error itself happens in plain mode.