The SaveGrid method saves the grid contents to a text file. The method has parameters that control the type of delimiter to use (for example, commas, tabs, custom delimiters), whether to save the fixed cells or only the scrollable cells, and the type of encoding to used (for example, ASCII or Unicode). The resulting text files can later be loaded back into the control, or into other applications that support comma or tab-delimited files (for example, Microsoft Excel).
The LoadGrid method loads data from text files. You can load text files created with the SaveGrid method or with other applications.
The format of the text files is fairly simple. Cell contents are saved as formatted strings (exactly as they are displayed on the screen). If the cell text contains quote characters or cell separator characters, the cell is enclosed in quotes. Any quote characters contained in the cell text are doubled. This is the also the convention used in Microsoft Excel text files.
Text files do not contain pictures or formatting information.
The SaveGrid method has a flags parameter that allows you to specify whether you want to save the entire grid or only certain parts (scrollable, visible, or selected).