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

"Parameter is not valid" internal error when clicking around ggc.

I occasionally get the fllw error below->

Message : Parameter is not valid.

Stack Trace: at System.Drawing.Graphics.set_RenderingOrigin(Point value)
at Syncfusion.Windows.Forms.ScrollControl.FixRenderOrigin(Graphics g)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(PaintEventArgs pe)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnPaint(PaintEventArgs e)
at Syncfusion.Windows.Forms.ScrollControl.WmPaint(Message& msg)
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)


... looks like an internal error and just can't seem to find what's triggering it.

3 Replies

HA haneefm Syncfusion Team May 21, 2007 11:21 PM UTC

Hi James,

Your incident(#34207) has been updated. Please follow up the incident for more details.

Thanks for choosing Syncfusion Products.

Best regards,
Haneef


SK Sakshi Khurana April 24, 2023 07:41 AM UTC

Hi,

Could you please add the solution here as well



DM Dhanasekar Mohanraj Syncfusion Team April 25, 2023 02:41 PM UTC

Sakshi Khurana,

Please find the shared solution below,

Are there multiple threads involved in your application? If so, please check the Knowledge Base(KB) article link below.

KB Link: https://support.syncfusion.com/kb/article/1307/how-to-used-winforms-gridcontrol-in-a-multithreaded-application

Intermittent 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 the grid.InvokeRequired to check for this.

Here we have attached the sample, please have a look at this.

If this is not the case, please update us with a sample showing this error. That would help us to analyze the issue here and get this resolved at the earliest.


Attachment: LoadDataInBackGroundThread_9e7dba28.zip

Loader.
Live Chat Icon For mobile
Up arrow icon