Hi guys,
I'm using WinForms UltraGrid for NET6 (not .Net Framework) and noticed that grid.DisplayLayout.LoadFromXML() and grid.DisplayLayout.SaveAsXml() are missing.
In my application I need load previously saved xml layout (from a .Net Framework version) at runtime.
Please can You provide any workaround?
Bye
Roberto
Hello,
I found the same issue with ultraDockManager. Unfortunately there is no info in the docs that this feature is no longer available in net6 and it is not so easy to find this topic in google. Could you please update the docs for SaveAsXml/LoadAsXml methods with warning that these methods are missing in Net6?
Hi Andrew, could you please post an example on how to load an "old" xml file and convert it to th new format. It is no problem to use .save and .load - I just cannot load the old xml files an apply the settings to my grid. TIA regards Uwe
Hello Roberto,
I have been investigating into your requirement, and you are correct that the LoadFromXml and SaveAsXml methods are not present on the UltraGrid.DisplayLayout in .NET 6. The reason for this is because Microsoft discontinued the SoapFormatter class in .NET Core, which the methods in question used extensively.
Luckily, we do expose other methods to save and load the layout of the UltraGridLayout via the Save and Load methods. These will save to binary, and so if you have an XML file that needs to be loaded, I would recommend that you first load it in a .NET Framework application and then re-save it using the Save method.
Please let me know if you have any other questions or concerns on this matter.