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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Raising ArgumentException

Thread ID:

Created:

Updated:

Platform:

Replies:

36882 Nov 11,2005 03:12 PM UTC Nov 14,2005 03:58 PM UTC WinForms 4
loading
Tags: GridControl
Badri Rajani Kanth
Asked On November 11, 2005 03:12 PM UTC

Hi All, We are using GridGroupingControls in our application. All our calls to the GGCs are threadsafe. Still, during the form load, we are getting error(pasted below) from GGC. Can any body plz throw light on why itz happening? Thank you Rajani Kanth ==========error================================= Invalid parameter used error. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentException: Invalid parameter used. at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height) at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.OptimizeLoadTime() at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.f_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e)

Administrator [Syncfusion]
Replied On November 11, 2005 03:36 PM UTC

Something to try. In your form, override OnLoad. There, before calling the baseclass, do a grid.InvokeRequired check to see if this OnLoad is being called from the thread that created the grid.

Badri Rajani Kanth
Replied On November 11, 2005 05:40 PM UTC

HI, I am not calling base class any where. I have added the code if (grdCallSheet.InvokeRequired) { Debug.WriteLine("INVOKE CALLED"); } in the form constructor, as well as Load event. In runtime, The code was called first in constructor and then in Load event. Both the times, grdCallSheet.InvokeRequired is FALSE. Is it giving any clue? Rgds RajaniKanth >Something to try. > >In your form, override OnLoad. There, before calling the baseclass, do a grid.InvokeRequired check to see if this OnLoad is being called from the thread that created the grid.

Administrator [Syncfusion]
Replied On November 11, 2005 05:57 PM UTC

The reason I suggested to add an OnLoad override was because it is explicitly listed in the call stack above, but it is not likely that OnLoad is being called from another thread anyway. I did a search in our support incident data base, and the was one other hit on OptimizeLoadTime. In that case, the height of the bitmap was zero and was causing the exception. The user reported back that the problem had to do with something he was doing with isolated storage. Are you using isolated storage for any reason?

Badri Rajani Kanth
Replied On November 14, 2005 03:58 PM UTC

Thank You Clay! Ours is also similer case and we have fixed at our end. Rgds Rajani Kanth >The reason I suggested to add an OnLoad override was because it is explicitly listed in the call stack above, but it is not likely that OnLoad is being called from another thread anyway. > >I did a search in our support incident data base, and the was one other hit on OptimizeLoadTime. In that case, the height of the bitmap was zero and was causing the exception. The user reported back that the problem had to do with something he was doing with isolated storage. Are you using isolated storage for any reason?

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.

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

;