Articles in this section
Category / Section

How to read back files generated using GridModel.SaveBinary with grid version 3.3 or earlier in WinForms GridControl?

1 min read

 

Loading the Gird with a SOAP/Binary file generated with an older version (3.3 or earlier) had a bug. Loading the SOAP has been corrected for 4.1 version. But if you are loading a binary file, please use the attached tool - ConvertBinaryGridModelToSoap.

ConvertBinaryGridModelToSoap

ConvertBinaryGridModelToSoap fixes a problem that serialization is broken when a GridBaseStylesMap was serialized out. In that specific case full type information of the object was written out which causes a problem when we want to read back that file after upgrading Essential Grid to a newer version.

The specific problem has been fixed for version 4.1 but reading back these faulty files is only possible if we convert them to SOAP files.

With SOAP files Essential Grid has a workaround implemented within its LoadSoap method that fixes the problem. This allows us to read back files from older versions even if they have full type information serialized out.

ConvertBinaryGridModelToSoap automates the process to convert one or multiple files to soap. In its command line we need to specify the files we need to convert the soap and the extension that should be used for the files.

The source code for ConvertBinaryGridModelToSoap must be compiled first with the same version of Essential Grid that the file was written out with. Only then it will be able to read back in the binary serialized file.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied