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.
Syncfusion Feedback

Exception in grid..

Thread ID:

Created:

Updated:

Platform:

Replies:

41015 Feb 20,2006 02:39 PM UTC Feb 21,2006 12:04 AM UTC Windows Forms 1
loading
Tags: GridControl
James Moore
Asked On February 20, 2006 02:39 PM UTC

Hi there, Every so often the Grid is throwing an ArgumentException - It seems to happen when clicking randomly around the grid normally near the column headers (especially in their borders) however I have yet to be able to reproduce it regularly. Have you come across this before or do you have a fix for this? Stack trace as follows: At the end of a sort I get: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentException: Value does not fall within the expected range. at Syncfusion.Windows.Forms.Grid.GridRangeInfo..ctor(Int32 top, Int32 left, Int32 bottom, Int32 right) at Syncfusion.Windows.Forms.Grid.GridRangeInfo.InternalCells(Int32 top, Int32 left, Int32 bottom, Int32 right) at Syncfusion.Windows.Forms.Grid.GridViewLayout.Initialize() at Syncfusion.Windows.Forms.Grid.GridViewLayout.DemandInitialize() at Syncfusion.Windows.Forms.Grid.GridViewLayout.PointToClientCol(Point pt, Boolean fixBackHidden, GridCellSizeKind sizeKind) at Syncfusion.Windows.Forms.Grid.ResizeCellsHitTestInfo..ctor(GridResizeCellsMouseController resizeUI, GridControlBase grid, Point point, GridResizeCellsReason reason) at Syncfusion.Windows.Forms.Grid.GridResizeCellsMouseController.HitTest(MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.MouseControllerDispatcher.HitTest(Point point, MouseButtons mouseButton, Int32 clicks, IMouseController& controller) at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlMouseMoveHandled(Object sender, MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlHandledMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControl.OnMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.Grid.GridControlBase.OnMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.Grid.GridControlBaseImp.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) 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 System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- XXXXXXXXXXXXXXXXx ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- XXXXXXXXXXXXXXXXX ---------------------------------------- System.Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll ---------------------------------------- XXXXXXXXXXXXXXX ---------------------------------------- XXXXXXXXXXXXXXX ---------------------------------------- ActiproSoftware.UIStudio.Dock Assembly Version: 2.0.61.0 Win32 Version: 2.0.61.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx.0/Build/debug/ActiproSoftware.UIStudio.Dock.DLL ---------------------------------------- ActiproSoftware.WinUICore Assembly Version: 1.0.76.0 Win32 Version: 1.0.76.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/ActiproSoftware.WinUICore.DLL ---------------------------------------- ActiproSoftware.Shared Assembly Version: 1.0.76.0 Win32 Version: 1.0.76.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxx.0/Build/debug/ActiproSoftware.Shared.DLL ---------------------------------------- DevExpress.XtraBars3 Assembly Version: 3.6.0.0 Win32 Version: 3.6.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxxxx.0/Build/debug/DevExpress.XtraBars3.DLL ---------------------------------------- DevExpress.XtraEditors3 Assembly Version: 3.1.0.0 Win32 Version: 3.1.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxx.0/Build/debug/DevExpress.XtraEditors3.DLL ---------------------------------------- DevExpress.Utils3 Assembly Version: 3.1.0.0 Win32 Version: 3.1.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx.0/Build/debug/DevExpress.Utils3.DLL ---------------------------------------- DevExpress.XtraGrid3 Assembly Version: 3.1.0.0 Win32 Version: 3.1.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/DevExpress.XtraGrid3.DLL ---------------------------------------- DevExpress.Data3 Assembly Version: 3.1.0.0 Win32 Version: 3.1.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/DevExpress.Data3.DLL ---------------------------------------- DevExpress.XtraPrinting3 Assembly Version: 1.11.0.0 Win32 Version: 1.11.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxx/Build/debug/DevExpress.XtraPrinting3.DLL ---------------------------------------- Syncfusion.Shared.Base Assembly Version: 3.301.0.0 Win32 Version: 3.301.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx/Build/debug/Syncfusion.Shared.Base.DLL ---------------------------------------- Syncfusion.Core Assembly Version: 3.301.0.0 Win32 Version: 3.301.0.0 CodeBase: file:///C:/fdrive/work/xxxxxxxxxx/Build/debug/Syncfusion.Core.DLL ---------------------------------------- System.Data Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll ---------------------------------------- XXXXXXXXXXXXXX ---------------------------------------- Syncfusion.Grid.Windows Assembly Version: 3.301.0.0 Win32 Version: 3.301.0.0 CodeBase: file:///C:/fdrive/work/xxxxxx/Build/debug/Syncfusion.Grid.Windows.DLL ---------------------------------------- System.Design Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll ---------------------------------------- Accessibility Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll ---------------------------------------- XtraDataTempAssembly Assembly Version: 0.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. ==============================

Administrator [Syncfusion]
Replied On February 21, 2006 12:04 AM UTC

Hi James, we haven''t heard of such an exception before. I see you are using version 3.3 so I browsed through SourceSafe history but nothing related came up. The code in GridViewLayout that is executed just before the exception is this: rgFrozenTL = GridRangeInfo.InternalCells(0, 0, nfr, nfc); rgFrozenTop = GridRangeInfo.InternalCells(0, nLeftCol, nfr, nLastCol); rgFrozenLeft = GridRangeInfo.InternalCells(nTopRow, 0, nLastRow, nfc); rgCells = GridRangeInfo.InternalCells(nTopRow, nLeftCol, nLastRow, nLastCol); rgVisible = GridRangeInfo.InternalCells(grid.GetRow(nfr+1), grid.GetCol(nfc+1), nLastRow, nLastCol); whereas nfr and nfc are frozen rows and frozen columns and nTopRow, nLeftCol, nLastCol and nLastRow are calcualated dimensions of visible cells. The exception is thrown when InternalCells is called and the arguments are wrong. I am wondering if you maybe manually set Rows.FrozenCount or Cols.FrozenCount and did specify a wrong value there (e.g. maybe -1 instead of 0). Could that be it? Stefan >Hi there, > >Every so often the Grid is throwing an ArgumentException - It seems to happen when clicking randomly around the grid normally near the column headers (especially in their borders) however I have yet to be able to reproduce it regularly. Have you come across this before or do you have a fix for this? > >Stack trace as follows: > >At the end of a sort I get: > >See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. > >************** Exception Text ************** >System.ArgumentException: Value does not fall within the expected range. > at Syncfusion.Windows.Forms.Grid.GridRangeInfo..ctor(Int32 top, Int32 left, Int32 bottom, Int32 right) > at Syncfusion.Windows.Forms.Grid.GridRangeInfo.InternalCells(Int32 top, Int32 left, Int32 bottom, Int32 right) > at Syncfusion.Windows.Forms.Grid.GridViewLayout.Initialize() > at Syncfusion.Windows.Forms.Grid.GridViewLayout.DemandInitialize() > at Syncfusion.Windows.Forms.Grid.GridViewLayout.PointToClientCol(Point pt, Boolean fixBackHidden, GridCellSizeKind sizeKind) > at Syncfusion.Windows.Forms.Grid.ResizeCellsHitTestInfo..ctor(GridResizeCellsMouseController resizeUI, GridControlBase grid, Point point, GridResizeCellsReason reason) > at Syncfusion.Windows.Forms.Grid.GridResizeCellsMouseController.HitTest(MouseEventArgs e, IMouseController controller) > at Syncfusion.Windows.Forms.MouseControllerDispatcher.HitTest(Point point, MouseButtons mouseButton, Int32 clicks, IMouseController& controller) > at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseMove(MouseEventArgs e) > at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlMouseMoveHandled(Object sender, MouseEventArgs e) > at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlHandledMouseMove(MouseEventArgs e) > at Syncfusion.Windows.Forms.ScrollControl.OnMouseMove(MouseEventArgs e) > at Syncfusion.Windows.Forms.Grid.GridControlBase.OnMouseMove(MouseEventArgs e) > at Syncfusion.Windows.Forms.Grid.GridControlBaseImp.OnMouseMove(MouseEventArgs e) > at System.Windows.Forms.Control.WmMouseMove(Message& m) > 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 System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) > > >************** Loaded Assemblies ************** mscorlib > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll >---------------------------------------- >XXXXXXXXXXXXXXXXx >---------------------------------------- >System.Windows.Forms > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll >---------------------------------------- >System > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll >---------------------------------------- >System.Drawing > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll >---------------------------------------- >XXXXXXXXXXXXXXXXX >---------------------------------------- >System.Xml > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll >---------------------------------------- >XXXXXXXXXXXXXXX >---------------------------------------- >XXXXXXXXXXXXXXX >---------------------------------------- >ActiproSoftware.UIStudio.Dock > Assembly Version: 2.0.61.0 > Win32 Version: 2.0.61.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx.0/Build/debug/ActiproSoftware.UIStudio.Dock.DLL >---------------------------------------- >ActiproSoftware.WinUICore > Assembly Version: 1.0.76.0 > Win32 Version: 1.0.76.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/ActiproSoftware.WinUICore.DLL >---------------------------------------- >ActiproSoftware.Shared > Assembly Version: 1.0.76.0 > Win32 Version: 1.0.76.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxx.0/Build/debug/ActiproSoftware.Shared.DLL >---------------------------------------- >DevExpress.XtraBars3 > Assembly Version: 3.6.0.0 > Win32 Version: 3.6.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxxxx.0/Build/debug/DevExpress.XtraBars3.DLL >---------------------------------------- >DevExpress.XtraEditors3 > Assembly Version: 3.1.0.0 > Win32 Version: 3.1.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxx.0/Build/debug/DevExpress.XtraEditors3.DLL >---------------------------------------- >DevExpress.Utils3 > Assembly Version: 3.1.0.0 > Win32 Version: 3.1.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx.0/Build/debug/DevExpress.Utils3.DLL >---------------------------------------- >DevExpress.XtraGrid3 > Assembly Version: 3.1.0.0 > Win32 Version: 3.1.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/DevExpress.XtraGrid3.DLL >---------------------------------------- >DevExpress.Data3 > Assembly Version: 3.1.0.0 > Win32 Version: 3.1.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxx.0/Build/debug/DevExpress.Data3.DLL >---------------------------------------- >DevExpress.XtraPrinting3 > Assembly Version: 1.11.0.0 > Win32 Version: 1.11.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxx/Build/debug/DevExpress.XtraPrinting3.DLL >---------------------------------------- >Syncfusion.Shared.Base > Assembly Version: 3.301.0.0 > Win32 Version: 3.301.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxxx/Build/debug/Syncfusion.Shared.Base.DLL >---------------------------------------- >Syncfusion.Core > Assembly Version: 3.301.0.0 > Win32 Version: 3.301.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxxxxxx/Build/debug/Syncfusion.Core.DLL >---------------------------------------- >System.Data > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll >---------------------------------------- >XXXXXXXXXXXXXX >---------------------------------------- >Syncfusion.Grid.Windows > Assembly Version: 3.301.0.0 > Win32 Version: 3.301.0.0 > CodeBase: file:///C:/fdrive/work/xxxxxx/Build/debug/Syncfusion.Grid.Windows.DLL >---------------------------------------- >System.Design > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll >---------------------------------------- >Accessibility > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll >---------------------------------------- >System.EnterpriseServices > Assembly Version: 1.0.5000.0 > Win32 Version: 1.1.4322.573 > CodeBase: file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll >---------------------------------------- >XtraDataTempAssembly > Assembly Version: 0.0.0.0 > Win32 Version: n/a > CodeBase: >---------------------------------------- > >************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. >The application must also be compiled with debugging enabled. > >For example: > > > > >When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. > > > >============================== >

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.

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

;