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
340
Preserving DisplayLayout xml configurations when upgrading from 2008 to 2015 UltraWinGrid
posted

We are in the process of upgrading a Windows Forms application from using the 2008 Infragistics controls (8.1.20081.1000 ) to using the 2015 controls. This process was fairly painless. However, the newer UltraGrid's DisplayLayout.LoadFromXml() method implementation appears to be unable to open grid layouts saved by the older 2008 controls. When I try to load a 2008 layout in the newer control, I get the following error:

{"[A]Infragistics.Win.AppearanceHolder cannot be cast to [B]Infragistics.Win.AppearanceHolder. Type A originates from 'Infragistics2.Win.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' at location 'C:\\Windows\\assembly\\GAC_MSIL\\Infragistics2.Win.v8.1\\8.1.20081.1000__7dd5c3163f2cd0cb\\Infragistics2.Win.v8.1.dll'. Type B originates from 'Infragistics4.Win.v15.2, Version=15.2.20152.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' at location 'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\Infragistics4.Win.v15.2\\v4.0_15.2.20152.1000__7dd5c3163f2cd0cb\\Infragistics4.Win.v15.2.dll'."}

Are there any suggestions as to how I can preserve these layouts and convert them to the newer format expected by the 2015 UltraGrid control? These layouts are very important to our customers, and I need to find a way to preserve or migrate them to the new format.

Parents
No Data
Reply
  • 29065
    Suggested Answer
    Offline posted

    Hi,

    Can you provide us with your layout file to see if I can reproduce the behavior? Keep in mind that this was previously discussed here:
    http://ko.infragistics.com/community/forums/p/78545/396975.aspx#396975

    Let me know if you have any questions regarding this matter

Children