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
close icon

System.ArgumentException: Offset and length were out of bounds

Hi,
We are getting the following exception. Can you throw some light into this! It is basically happening when we try to load data after adding / modifying filter for an existing query. Any help would be greatly appreciated.

- * -

Exception is:
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.Array.BinarySearch[T](T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
at Syncfusion.Windows.Forms.Grid.GridViewLayout.SearchHighestValue(Int32[] offset, Int32 length, Int32 max)
at Syncfusion.Windows.Forms.Grid.GridViewLayout.PointToClientRow(Point pt, Boolean fixBackHidden, GridCellSizeKind sizeKind)
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.Grouping.GridTableControl.OnCellTipsMouseMove(MouseEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.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 Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

- * -

Attached in an image of the exception message.

Thanks in advance.
lim



OffsetAndLength_fa1ae99b.zip

1 Reply

NA Nisha Arockiya A Syncfusion Team November 18, 2008 12:15 PM UTC

Hi Lim,

Thanks for your interest in Syncfusion Products.

Are you usnig any tooltip to popup on the grid??

The exception like this occurs when you are using some tooltip to popup on the Grid and it fails due to some disability of selecting the range.
There no such property to disable such tooltip behaviour.
The Tooltip might be enabled with the help of QueryCellStyleInfo event. You can cancel the event if the tooltip pops up to disable it.

Please let us know if you could solve the issue.

Regards,
Nisha




Loader.
Live Chat Icon For mobile
Up arrow icon