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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl Crashes

Thread ID:

Created:

Updated:

Platform:

Replies:

29018 May 13,2005 02:32 PM May 13,2005 09:57 PM Windows Forms 1
loading
Tags: GridControl
Eric Robishaw
Asked On May 13, 2005 02:32 PM

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

Administrator [Syncfusion]
Replied On May 13, 2005 09:57 PM

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

CONFIRMATION

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.

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.

;