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

GridGroupingControl Crashes

GridGroupingControl 2.1 Whenever I set columnspans, the first time I try touch the grid (mouse over), i get this nasty exception at the Application Main Thread. "System.NullReferenceException: Object reference not set to an instance of an object.\r at Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptorCollection.get_TotalWidth()\r at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.GetHorizontalScrollWidth()\r at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.get_LastColumnWidth()\r at Syncfusion.Windows.Forms.Grid.Grouping.GridTableModel.OnQueryColWidth(GridRowColSizeEventArgs e)\r at Syncfusion.Windows.Forms.Grid.GridModel.RaiseQueryColWidth(GridRowColSizeEventArgs e)\r at Syncfusion.Windows.Forms.Grid.GridModelColWidthsIndexer.OnQuerySize(GridRowColSizeEventArgs e)\r at Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer.GetSize(Int32 index)\r at Syncfusion.Windows.Forms.Grid.GridModelRowColSizeIndexer.get_Item(Int32 index)\r at Syncfusion.Windows.Forms.Grid.GridControlBase.GetColWidth(Int32 colIndex)\r at Syncfusion.Windows.Forms.Grid.GridControlBase.GetHScrollPixelWidth()\r at Syncfusion.Windows.Fo rms.Grid.Grouping.GridTableControl.GetHScrollPixelWidth()\r at Syncfusion.Windows.Forms.Grid.GridScroll.UpdateScrollbars(Boolean bRedraw, Boolean bOnlyIfDimensionChanged)\r at Syncfusion.Windows.Forms.Grid.GridScroll.UpdateScrollbars()\r at Syncfusion.Windows.Forms.Grid.GridControlBase.OnSizeChanged(EventArgs e)\r at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)\r at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)\r at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg)\r at System.Windows.Forms.ControlNativeWindow.OnMessag e(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.Control.set_Size(Size value)\r at Syncfusion.Windows.Forms.SplitterControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResize(EventArgs e)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r at Syncfusion.Windows.Forms.SplitterControl.WndProc(Message& msg)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows .Forms.LayoutManager.LayoutDockedControls(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResize(EventArgs e)\r at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System. Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.LayoutManager.LayoutDockedControls(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResize(EventArgs e)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r\ n at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.WndProc(Message& msg)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.LayoutManager.LayoutDockedControls(Control container, L ayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResize(EventArgs e)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r at System.Windows.Forms.UserControl.WndProc(Message& m)\r at System .Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.LayoutManager.LayoutDockedControls(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResiz e(EventArgs e)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r at System.Windows.Forms.UserControl.WndProc(Message& m)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Wind ows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.LayoutManager.LayoutDockedControls(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.OnResize(EventArgs e)\r at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)\r at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r at System.Windows.Forms.Control.UpdateBounds()\r at System.Windows.Forms.Control.WmMove(Message& m)\r at System.Windows.For ms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r at System.Windows.Forms.Control.DefWndProc(Message& m)\r at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.LayoutManager.LayoutDockedControls(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.LayoutManager.OnLayout(Control container, LayoutEventArgs levent)\r at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r at System.Windows.Forms.Control.PerformLayout(Control affectedControl, String affectedProperty)\r at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r at System.Windows.Forms.Control.set_Bounds(Rectangle value)\r at System.Windows.Forms.Splitter.set_SplitPositio n(Int32 value)\r at System.Windows.Forms.Splitter.ApplySplitPosition()\r at System.Windows.Forms.Splitter.SplitEnd(Boolean accept)\r at System.Windows.Forms.Splitter.OnMouseUp(MouseEventArgs e)\r at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r at System.Windows.Forms.Control.WndProc(Message& m)\r at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r at System.Windows.Forms.ThreadContext.Ru nMessageLoop(Int32 reason, ApplicationContext context)\r at System.Windows.Forms.Application.Run()\r at AQDashboard.DashboardApp.Main() in d:\\dev\\v2_5\\aqdashboard\\startup.cs:line 173"

1 Reply

AD Administrator Syncfusion Team May 14, 2005 01:57 AM UTC

Do you see this problem in the sample we ship that uses columnspans? I could not. \2.1.0.9\Grid\Samples\Grouping\EmployeeView

Loader.
Live Chat Icon For mobile
Up arrow icon