Home Forums WinForms controls Xceed Grid for WinForms Xceed Grid turns into Red X Reply To: Xceed Grid turns into Red X

User (Old forums)
Member
Post count: 23064

Hi,

  I have similar error with Grid control in my application too and it does not look like this is a problem with multithreading in my case. Call stack is following:

System.OverflowException: Overflow error.
  at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
  at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
  at Xceed.Grid.PaintManager.DrawVerticalGridLine(Graphics graphics, Int32 x, Int32 y, Int32 height, Int32 dashOffset)
  at Xceed.Grid.Cell.PaintBorders(GridPaintEventArgs e)
  at Xceed.Grid.PaintManager.PaintVisibleCellsBorders(VisibleCellList visibleCells, PaintEventArgs e, Point actualClientPosition)
  at Xceed.Grid.PaintManager.PaintVisibleRows(VisibleRowList visibleRows, PaintEventArgs e)
  at Xceed.Grid.PaintManager.PaintGrid(PaintEventArgs e)
  at Xceed.Grid.GridControl.OnPaint(PaintEventArgs e)
  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 Xceed.Grid.GridControl.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)
My application is used by several clients on different computers, however only one client reported about such error and I cannot duplicate it on my devepment machine. Do you have any other ideas on what possibly can cause such error?

Thank You.

Imported from legacy forums. Posted by Andrew (had 328 views)