Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Error repainting WinGrid - 12.1.20121.2142
posted

We're encountering an error which seems to be related to the WinGrid.  On our form we are not creating any background threads or using anything like the background worker.  The error ends up crashing the application.  This is the stack trace:

Exception:

System.ArgumentException: Parameter is not valid.

   at System.Drawing.Image.get_Width()

   at System.Drawing.Image.get_Size()

   at Infragistics.Win.DrawUtility.DrawImageBackground(Graphics g, AppearanceData& appearanceData, AlphaBlendMode alphaMode, Rectangle invalidRect, Control control, Rectangle relativeRect, ImageAttributes imgAttributes, ColorRenderMode colorRenderMode, Boolean isEnabled)

   at Infragistics.Win.UIElementDrawParams.DrawImageBackground(AppearanceData& appearance, Rectangle rect, Rectangle invalidRect, Boolean enabled)

   at Infragistics.Win.UIElementDrawParams.DrawImageBackground()

   at Infragistics.Win.UIElement.DrawImageBackground(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)

   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)

   at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics)

   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics)

   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)

   at Infragistics.Win.UltraWinGrid.UltraGridUIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)

   at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)

   at Infragistics.Win.UltraWinGrid.UltraGrid.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 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)

There are some cells which have background images, but we don't know what's triggering this code.  We are wondering if this was a known issue in this version and what, if anything, could we change to prevent it from happening?  Unfortunately we are stuck at .Net 3.5 for the time being, so upgrading to a new version isn't an option.

Any help at all with this would be appreciated.

Parents Reply Children
No Data