We are using the group grid control on our windows form. An exception is thrown when the dataset is cleaned and refilled. Did anyone know what caused it? thanks in advance.
Exception Details:
Exception Type:NullReferenceException
Object reference not set to an instance of an object.
Stack Trace:
at Syncfusion.Grouping.Internals.GroupCategoryTreeTableEntry.GetSortKey()
at Syncfusion.Collections.BinaryTree.TreeTable.AddIfNotExists(Object key, ITreeTableEntry value)
at Syncfusion.Grouping.Table.InsertSortedRecordsTreeEntry(SortedRecordsTreeTableEntry sortedEntry)
at Syncfusion.Grouping.Table.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableBase.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at System.ComponentModel.ListChangedEventHandler.Invoke(Object sender, ListChangedEventArgs e)
at System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)
at System.Windows.Forms.BindingSource.InnerList_ListChanged(Object sender, ListChangedEventArgs e)
at System.Data.DataView.OnListChanged(ListChangedEventArgs e)
at System.Data.DataView.IndexListChanged(Object sender, ListChangedEventArgs e)
at System.Data.DataView.IndexListChangedInternal(Object sender, ListChangedEventArgs e)
at System.Data.DataViewListener.IndexListChanged(Object sender, ListChangedEventArgs e)
at System.Data.Index.OnListChanged(ListChangedType changedType, Int32 index)
at System.Data.Index.InsertRecord(Int32 record, Boolean fireEvent)
at System.Data.Index.ApplyChangeAction(Int32 record, Int32 action)
at System.Data.Index.RecordStateChanged(Int32 record, DataViewRowState oldState, DataViewRowState newState)
at System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos, Boolean fireEvent)
at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos)
at System.Data.DataTable.AddRow(DataRow row, Int32 proposedID)
at System.Data.DataRowCollection.Add(DataRow row)