Articles in this section

How to read back files using SaveBinary tutorial in WinForms Grid Control?

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


ConvertBinaryGridModelToSoap

ConvertBinaryGridModelToSoap fixes a problem where 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 will it be able to read back in the binary serialized file.

 

Conclusion


I hope you enjoyed learning how to read back files using the SaveBinary tutorial in the WinForms Grid Control.


You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms GridControl example to understand how to create and manipulate data.

 

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.


If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

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