FlexGrid for WinForms
SaveGrid(String,FileFormatEnum,FileFlags,Encoding) Method



Name of the file to save, including the path.
File format to use.
Options to use when saving the file.
System.Text.Encoding to use when saving the file.
Saves the grid contents to a file.
Syntax
'Declaration
 
Public Overloads Sub SaveGrid( _
   ByVal fileName As String, _
   ByVal format As FileFormatEnum, _
   ByVal flags As FileFlags, _
   ByVal encoding As Encoding _
) 
'Usage
 
Dim instance As C1FlexGridBase
Dim fileName As String
Dim format As FileFormatEnum
Dim flags As FileFlags
Dim encoding As Encoding
 
instance.SaveGrid(fileName, format, flags, encoding)

Parameters

fileName
Name of the file to save, including the path.
format
File format to use.
flags
Options to use when saving the file.
encoding
System.Text.Encoding to use when saving the file.
Remarks

Grids saved to CSV and other text files include data only (no formatting information is saved).

Grids saved to Excel files include data and formatting information. Images are not saved.

Grids can also be persisted to Xml format using the WriteXml(String) and ReadXml(String) methods.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback