We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

NullReferenceException when refill the dataset on group grid control

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)


1 Reply

AD Administrator Syncfusion Team September 25, 2006 05:27 AM UTC

Hi spiritaway,

Thanks for being patience.

Please refer to the following sample which demonstrates the GridGroupingControl’s rebinding with datasets without any issues. Is it possible for you to modify the sample to reproduce the issue here?

Best regards,
Haneef

Nested_GGC.zip

Loader.
Live Chat Icon For mobile
Up arrow icon