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
430
Big Red Cross In WinGrid
posted

Hello. I have a wingrid that changes when I change the value of a combo. Sometimes, when I change the combo, the content of the grid dissapears and, insted of it, appears a big red cross. The exception that is produced is. I don't use threads.

Application_ThreadException: System.ArgumentOutOfRangeException: El índice estaba fuera del intervalo. Debe ser un valor no negativo e inferior al tamaño de la colección.

Nombre del parámetro: index

   en System.Collections.ArrayList.get_Item(Int32 index)

   en Infragistics.Win.UltraWinGrid.CellsCollection.GetItem(Int32 index)

   en Infragistics.Win.UltraWinGrid.CellsCollection.get_Item(UltraGridColumn column)

   en Infragistics.Win.UltraWinGrid.UltraGridRow.ResolveCellAppearance(UltraGridColumn column, AppearanceData& appData, AppearancePropFlags& requestedProps, Boolean cellAppearanceOnly, Boolean forceSelected, ForceActive forceActive, Boolean isMergedCell, Boolean hotTrackingCell, Boolean hotTrackingRow, Boolean isProxyResolution)

   en Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.OnAfterDraw(UIElementDrawParams& defaultDrawParams)

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

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

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

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

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

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

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

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

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

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

   en Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(PaintEventArgs pe)

   en System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

   en System.Windows.Forms.Control.WmPaint(Message& m)

   en System.Windows.Forms.Control.WndProc(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

   en System.Collections.ArrayList.get_Item(Int32 index)

   en Infragistics.Win.UltraWinGrid.CellsCollection.GetItem(Int32 index)

   en Infragistics.Win.UltraWinGrid.CellsCollection.get_Item(UltraGridColumn column)

   en Infragistics.Win.UltraWinGrid.UltraGridRow.ResolveCellAppearance(UltraGridColumn column, AppearanceData& appData, AppearancePropFlags& requestedProps, Boolean cellAppearanceOnly, Boolean forceSelected, ForceActive forceActive, Boolean isMergedCell, Boolean hotTrackingCell, Boolean hotTrackingRow, Boolean isProxyResolution)

   en Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.OnAfterDraw(UIElementDrawParams& defaultDrawParams)

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

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

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

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

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

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

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

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

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

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

   en Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(PaintEventArgs pe)

   en System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

   en System.Windows.Forms.Control.WmPaint(Message& m)

   en System.Windows.Forms.Control.WndProc(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What's the problem?

Thank you  very much.

 

Parents
  • 71886
    Offline posted

    Hello endaliadev,

    Could you please try to attach if possible a small sample project, which reproduces this issue, I will be happy to take a look at it and assist you further on that matter.

Reply Children
No Data