Hello!I am experiencing an error that has no way to fix.I am using Infragistics NetAdvantage for .NET (Windows Forms) 10.2.20102.1004.By clicking on the top left of WinGrid the form that should appear with the list of fields, only appears with a large red "X" and displays the following error:System.ArithmeticException: overflow or underflow in the arithmetic operation. in Infragistics.Win.Layout.GridBagLayoutManager.GridBagHelper (ILayoutContainer container, Object containerContext, layoutContainer Boolean, Boolean returnItemDimensions) in Infragistics.Win.Layout.GridBagLayoutManager.GetLayoutItemDimensions (ILayoutContainer container, Object containerContext) in Infragistics.Win.UltraWinGrid.UltraGridBand.VerifyRowLayoutCache () in Infragistics.Win.UltraWinGrid.UltraGridBand.GetAllOrderedHeaders () in Infragistics.Win.UltraWinGrid.UltraGridBand.CalculateBandMetrics (UltraGridBand priorBand) in Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics (Int32 pass) in Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics () in Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper () in Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics () in Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands () in Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated (BindingManagerBase bindingManager) in Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated () in Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager (Object newDataSource, String newDataMember) in Infragistics.Win.UltraWinGrid.UltraGridBase.SetDataBindingHelper (Object dataSource, dataMember String, Boolean hideNewColumns, Boolean hideNewBands) in Infragistics.Win.UltraWinGrid.UltraGridBase.SetDataBinding (Object dataSource, dataMember String, Boolean hideNewColumns, Boolean hideNewBands) in Infragistics.Win.UltraWinGrid.UltraGridBase.SetDataBinding (Object dataSource, String dataMember) in Infragistics.Win.UltraWinGrid.UltraGridColumnChooser.CreateColumnChooserGridDataStructure () in Infragistics.Win.UltraWinGrid.UltraGridColumnChooser.Initialize () in Infragistics.Win.UltraWinGrid.UltraGridColumnChooser.VerifyInitialized () in Infragistics.Win.UltraWinGrid.ColumnChooserGridCreationFilter.BeforeCreateChildElements (parent UIElement) in Infragistics.Win.UIElement.VerifyChildElements (ControlUIElementBase ControlElement, Boolean recursive) in Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements (ControlUIElementBase ControlElement, Boolean recursive) in Infragistics.Win.UIElement.VerifyChildElements (Boolean recursive) in Infragistics.Win.UltraWinGrid.UltraGridUIElement.InternalInitializeRect (Boolean VERIFY) in Infragistics.Win.UltraWinGrid.UltraGridLayout.InternalInitializeUltraGridUIElementRect (VERIFY Boolean, Boolean onlyWhenEmpty) in Infragistics.Win.UltraWinGrid.UltraGridLayout.GetUIElement (VERIFY Boolean, Boolean forceInitializeRect) in Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint (PaintEventArgs Standing) in System.Windows.Forms.Control.PaintWithErrorHandling (PaintEventArgs and Int16 layer) in System.Windows.Forms.Control.WmPaint (Message & m) in System.Windows.Forms.Control.WndProc (Message & m) in System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m) in System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m) in System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)Can anyone help?
Hello Julio,
I am just checking about the progress of this issue. Did you succeed to reproduce this in a small sample project? Do you need my further assistance on this?
Thank you for using Infragistics Components.
It is very strange! On my form, I have a UltraTabControl with two Tabs. In each TAB own a UltraGrid. This error occurs as follows: If you click on the FIRST filed chooser of the grid in the FIRST tab I get an error, but the SECOND tab works. But if I click on the first field chooser tab SECOND the grid I get an error but the FIRST works! Ie always what is clicked first returns p mistake, but others work. Has anyone experienced this? Julio.
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have created a small sample solution with UltraTabControl with two tabs. On each tab I have added its own UltraGrid. Both grids show their field chooser whatever order I click on them.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this issue.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Looking forward to your reply.