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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exception On Sorting Based On CustomSummary

Thread ID:





67248 Aug 10,2007 05:35 PM UTC Aug 10,2007 06:29 PM UTC WinForms 1
Tags: Grouping
Abhishek Shivalingaiah
Asked On August 10, 2007 05:35 PM UTC

Syncfusion 5.1
VS 2005

I get this exception when trying to sort by custom summary(I do not get this exception when using the predefined summaries like DoubleAggregate). Using a custom summary(TotalSummary provided in the samples) and then sorting the groups based on this by setting SetGroupSummarySortOrder on the sortcolumndescriptor.

Object reference not set to an instance of an object. at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.OnQueryCoveredRange(GridTableQueryCoveredRangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.RaiseQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.OnQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridModel.RaiseQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridModelCoveredRanges._Find(Int32 rowIndex, Int32 colIndex, GridRangeInfo& range)
at Syncfusion.Windows.Forms.Grid.GridModelCoveredRanges.Find(Int32 rowIndex, Int32 colIndex, GridRangeInfo& range)
at Syncfusion.Windows.Forms.Grid.GridControlBase.ScrollCellInViewInt(Int32 rowIndex, Int32 colIndex, Boolean scrollFloatingCell, Boolean dontScroll, GridScrollCurrentCellReason reason)
at Syncfusion.Windows.Forms.Grid.GridControlBase.ScrollCellInView(Int32 rowIndex, Int32 colIndex, GridScrollCurrentCellReason reason)
at Syncfusion.Windows.Forms.Grid.GridCurrentCell.BeginEdit()
at Syncfusion.Windows.Forms.Grid.GridControlBase.FixCurrentCellGotFocus(Boolean noScroll)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)

haneefm [Syncfusion]
Replied On August 10, 2007 06:29 PM UTC

Hi Shek,

Here is a minimal sample with a custom summary that shows you "How to sort summary using either GroupSortOrderComparer or SetGroupSummarySortOrder?". Please try the attached sample and let me know if this helps.

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon