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

Value does not fall within the expected range

Hi,

I'm getting this error, I could not trace why this error is happening. Can you please suggest me, why this error is happening?

-----------------------------------
Error....

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.GridModelFloatingCells.EvaluateFloatingCells(GridControlBase pGrid, GridRangeInfo range, Int32 nfr, Int32 nfc, Int32 nTopRow, Int32 nLeftCol, Int32 nLastRow, Int32 nLastCol, GridRangeInfo& prgBoundary)
at Syncfusion.Windows.Forms.Grid.GridControlBase.EvaluateVisibleFloatingCells(GridRangeInfo range)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnBeforePaint(EventArgs e)
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)

------------------------------------

Thanks & Regards,
Sathish.

1 Reply

AD Administrator Syncfusion Team March 13, 2007 02:47 PM UTC

Hi Sathish,

The error which you have mentioned, is an indication of threading issues. Are there multiple threads involved in your appilcation? If so, please check the Knowledge Base(KB) article link below.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=78

Intermittant errors can be indications of threading issues. Any calls into the grid must be done on the thread that creates it, and you can use grid.InvokeRequired to check for this.
Here is a sample.

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon