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.

System.ArgumentException: Offset and length were out of bounds

Thread ID:

Created:

Updated:

Platform:

Replies:

77748 Nov 14,2008 11:40 AM Nov 18,2008 07:15 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 14, 2008 11:40 AM

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

Nisha Arockiya A [Syncfusion]
Replied On November 18, 2008 07:15 AM

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




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.

;