After applying the newest service release I get several strangae errors, e.g:
Binding a dataset as datasource for a ultracombo causes validation with follwing error:
Normal 0 21 false false false DE X-NONE X-NONE
Fehler:
Das Objekt des Typs "Infragistics.Win.UltraWinGrid.UltraCombo" kann nicht in Typ "Infragistics.Win.UltraWinGrid.UltraGrid" umgewandelt werden.
System.InvalidCastException
Details:
bei Infragistics.Win.UltraWinGrid.UltraGridBand.FitColumnsToWidth(Int32 right)
bei Infragistics.Win.UltraWinGrid.ViewStyleBase.FitColumnsToWidth()
bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics(Int32 pass)
bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics()
bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()
bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands()
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated(BindingManagerBase bindingManager)
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated()
bei Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager(Object newDataSource, String newDataMember)
bei Infragistics.Win.UltraWinGrid.UltraGridBase.set_DataSource(Object value)
UltraDateTimeEditor:
The DateTime property cannot be set to a value that is outside the range determined by the MinDate and MaxDate properties.
System.ArgumentException
bei Infragistics.Win.UltraWinEditors.UltraDateTimeEditor.set_DateTime(DateTime value)
bei IMSCargo2008.frmAuftrag.InitializeComponent() in D:\DatenCenter\Entwicklung\VS2008\Visual Studio 2008\Projects\IMSCargo\IMSCargo2008\IMSCargo2008\Formulare\Auftrag\frmAuftrag.Designer.vb:Zeile 977.
bei IMSCargo2008.frmAuftrag..ctor() in D:\DatenCenter\Entwicklung\VS2008\Visual Studio 2008\Projects\IMSCargo\IMSCargo2008\IMSCargo2008\Formulare\Auftrag\frmAuftrag.vb:Zeile 58.
bei IMSCargo2008.frmMenu.UltraToolbarsManager1_ToolClick(Object sender, ToolClickEventArgs e)
The range was not changed and is the default.....
Well, it's a bit hard to decipher the error message here since it's not in English (is that German?), but it looks like something is trying to cast an UltraCombo into an UltraGrid somewhere. That could be a bug in the control.
Can you reproduce this in a small sample project and post it here so we can take a look?
This is the line causing the error:
.DataSource = StammdatenDiverse.Steuersatz(
"Steuersatz", ISOCode)
The "StammDatenDiverse.Steuersatz" is a function which return a simple dataset. In the previous version (2029) and all before (from 2008.2) there was no problem with the combo, also we only updated with the service release and don't made any changes of the code.......
I have not seen that error before and I'm not aware of any issues that would cause something like this. Your best bet is to try to duplicate it in a small sample project so we can check it out.
Do you have the latest service release? I think this may already be fixed. If it's not fixed already, then it will be in the next service release.
You can do a project level search and replace for the following strings that will be in your form designers to reset the auto fit style.
Replace - "AutoFitStyle.ExtendLastColumn"With This - "AutoFitStyle.None"
After the service release 9.1.20091.2039. I cant even open the windows form designer where the Infragistics.Win.UltraWinGrid.UltraCombo is used.
Any suggestion how to set AutoFitStyle to the default, for more then 200 usages of the UltraCombo in the application?
Unable to cast object of type 'Infragistics.Win.UltraWinGrid.UltraCombo' to type 'Infragistics.Win.UltraWinGrid.UltraGrid'.
at Infragistics.Win.UltraWinGrid.UltraGridBand.FitColumnsToWidth(Int32 right)at Infragistics.Win.UltraWinGrid.ViewStyleBase.FitColumnsToWidth()at Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics(Int32 pass)at Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics()at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()at Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands()at Infragistics.Win.UltraWinGrid.UltraGridBase.VerifyDataSourceAttached()at Infragistics.Win.UltraWinGrid.UltraCombo.OnCreateControl()at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)at System.Windows.Forms.Control.CreateControl()at System.Windows.Forms.Control.ControlCollection.Add(Control value)at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)
I went back to hotfix 2029 which is working. I figure I'll just wait for 2009 Vol 2 before I venture to upgrade again.
just remark out the line and manually set the column widths, much simpler than all the reinstall