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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exception while populating the grid

Thread ID:

Created:

Updated:

Platform:

Replies:

50278 Oct 10,2006 06:20 AM UTC Oct 11,2006 11:29 AM UTC WinForms 1
loading
Tags: GridControl
Vanitha Nagaraj
Asked On October 10, 2006 06:20 AM UTC

Hi,

In our application, we are using GridDataBoundGrid control (Syncfusion version - 3.3, .Net framework - 1.1). When I try to load the datagrid with datatable, sometimes it is throwing the following exceptions.

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.get_LastVisibleRow()
at Syncfusion.Windows.Forms.Grid.GridControlBase.EndUpdateModel(Boolean
update, Boolean fromModel)
at Syncfusion.Windows.Forms.Grid.GridControlBase.EndUpdate(Boolean
update)
at Syncfusion.Windows.Forms.ScrollControl.EndUpdate() in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 4348
at Syncfusion.Windows.Forms.ScrollControl.CancelUpdate() in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 4358
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 2890
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)

-----------------------------------------------------------------------
Stack Trace: 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.get_LastVisibleRow()
at Syncfusion.Windows.Forms.Grid.GridControlBase.EndUpdateModel(Boolean
update, Boolean fromModel)
at Syncfusion.Windows.Forms.Grid.GridControlBase.EndUpdate(Boolean
update)
at Syncfusion.Windows.Forms.ScrollControl.EndUpdate() in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 4348
at Syncfusion.Windows.Forms.ScrollControl.CancelUpdate() in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 4358
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) in C:\Program Files\Syncfusion\Essential Studio\3.3.0.0 \Base\Shared.Base\Src\Scrolling\ScrollControl.cs:line 2890
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)

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

System.InvalidProgramException: Grid is in updating mode
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(PaintEventArgs
pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(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)

-----------------------------------------------------------------------
Stack Trace: at
Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(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)

Could you please let us know the cause of this exception and how to avoid this.

Thanks and Regards,
Vanitha

Administrator [Syncfusion]
Replied On October 11, 2006 11:29 AM UTC

Hi Vanitha,

Please refer the below forum thread.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=50353

Thanks,
Haneef

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;