Hi,
I have a GGC with nested tables and when doing to following operations I get an exception that makes my control totally unusable.
Using the attached sample (follow the instructions on the form):
1- Expand a row and click on the child row
2- Filter out that row using the textbox and RowFilter
3- Expand the displayed row
4- Click on the child row
-> An exception is thrown here and until the active cell is visible again:
- I can''t expand another row
- I can''t change the DataSource
- a few other things
Here is the StackTrace I get when I run in the debugger:
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.NotifyNavigateComplete(Boolean success, Element previousRecord)
at Syncfusion.Grouping.CurrentRecordManager.NavigateTo(Element record, Boolean cancelEditIfNotValid, Boolean scrollInView)
at Syncfusion.Grouping.CurrentRecordManager.NavigateTo(Element record)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.ControlEnterRecord(Element record)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnCurrentCellActivating(GridCurrentCellActivatingEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridControlBase.RaiseCurrentCellActivating(Int32& rowIndex, Int32& colIndex, GridSetCurrentCellOptions& options)
at Syncfusion.Windows.Forms.Grid.GridCurrentCell.Activate(Int32 rowIndex, Int32 colIndex, GridSetCurrentCellOptions options)
at Syncfusion.Windows.Forms.Grid.GridCurrentCell.MoveTo(Int32 rowIndex, Int32 colIndex, GridSetCurrentCellOptions options, Boolean discardChanges)
at Syncfusion.Windows.Forms.Grid.GridCurrentCell.MoveTo(Int32 rowIndex, Int32 colIndex, GridSetCurrentCellOptions options)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.OnClick(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.RaiseClick(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.OnMouseUp(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.RaiseMouseUp(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridSelectCellsMouseController.MouseUp(MouseEventArgs e)
at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseUp(MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.OnMouseUp(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.RaiseMouseUp(Int32 rowIndex, Int32 colIndex, MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridSelectCellsMouseController.MouseUp(MouseEventArgs e)
at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseUp(MouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlBeforeMouseUp(Object sender, CancelMouseEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlMouseUp(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
I am using Syncfusion 3.0.1.0
Thanks,
Marcel Gosselin
GGC-NullReferenceException.zip