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.

ArgumentException from GridRangeInfo.ctor

Thread ID:

Created:

Updated:

Platform:

Replies:

17799 Aug 17,2004 09:37 AM Apr 26,2006 03:07 PM Windows Forms 2
loading
Tags: GridControl
Akshay Arora
Asked On August 17, 2004 09:37 AM

I''m having a hell of a time trying to figure out why this is happening. I originally thought this was because of something that I was doing, but I don''t think that it''s possible for me to pass in an invalid value...Below is the Exception text...anyone else have this happen to them? BTW, this is using version 1.6.1 and the control is a GridControl. -akshay 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.PointToClientRow(Point pt, Boolean fixBackHidden) at Syncfusion.Windows.Forms.Grid.GridViewLayout.PointToClientRow(Point pt) at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRangeInfo(Point point, Int32 fixOutOfRange) at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRowCol(Point point, Int32& rowIndex, Int32& colIndex, Int32 fixOutOfRange) at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRowCol(Point point, Int32& rowIndex, Int32& colIndex) at Syncfusion.Windows.Forms.Grid.GridControlBase.OnCellTipsMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.Grid.GridControlBase.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)

Administrator [Syncfusion]
Replied On August 17, 2004 10:12 AM

Searching our Direct Trac database for instances of this error does show a few. Without exception, the problem occurred in multithreaded situations where there are calls into the grid that are not protected by grid.InvokeRequired checks. So, if you are using multithreads, you need to make sure there are no unprotected calls in the grid from a thread other than the thread that created the grid. One thing that might trigger such a call is a grid.BeginUpdate call with this option set, BeginUpdateOption.ScrollInView. If you have such a call, you might try just using grid.BeginUpadte() with no options set.

Administrator [Syncfusion]
Replied On April 26, 2006 03:07 PM

>I''m having a hell of a time trying to figure out why this is happening. I originally thought this was because of something that I was doing, but I don''t think that it''s possible for me to pass in an invalid value...Below is the Exception text...anyone else have this happen to them? BTW, this is using version 1.6.1 and the control is a GridControl. > >-akshay > > >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.PointToClientRow(Point pt, Boolean fixBackHidden) > at Syncfusion.Windows.Forms.Grid.GridViewLayout.PointToClientRow(Point pt) > at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRangeInfo(Point point, Int32 fixOutOfRange) > at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRowCol(Point point, Int32& rowIndex, Int32& colIndex, Int32 fixOutOfRange) > at Syncfusion.Windows.Forms.Grid.GridControlBase.PointToRowCol(Point point, Int32& rowIndex, Int32& colIndex) > at Syncfusion.Windows.Forms.Grid.GridControlBase.OnCellTipsMouseMove(MouseEventArgs e) > at Syncfusion.Windows.Forms.Grid.GridControlBase.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)

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.

;