Syncfusion.GridHelperClasses.Windows
Example 


Range of type Syncfusion.Windows.Forms.Grid.GridRangeInfo to be exported.
The grid model.
Name of the file to which the grid is to be exported.

ExportRange Method (GridCSVConverter)

Exports specified range to excel from GridModel object passed in.
Syntax
'Declaration
 
Public Sub ExportRange( _
   ByVal range As GridRangeInfo, _
   ByVal grid As GridModel, _
   ByVal filename As String _
) 
'Usage
 
Dim instance As GridCSVConverter
Dim range As GridRangeInfo
Dim grid As GridModel
Dim filename As String
 
instance.ExportRange(range, grid, filename)
public void ExportRange( 
   GridRangeInfo range,
   GridModel grid,
   string filename
)

Parameters

range
Range of type Syncfusion.Windows.Forms.Grid.GridRangeInfo to be exported.
grid
The grid model.
filename
Name of the file to which the grid is to be exported.
Example
This example shows how to export the range to CSV format.
GridCSVConverter csvConverter = new GridCSVConverter();
GridRangeInfo range = GridRangeInfo.Rows(1, 5);
csvConverter.ExportRange(range, this.gridGroupingControl1.TableModel, "Sample.csv");
Dim csvConverter As GridCSVConverter = New GridCSVConverter
Dim range As GridRangeInfo = GridRangeInfo.Rows(1, 5)
csvConverter.ExportRange(range, Me.gridGroupingControl1.TableModel, "Sample.csv")
AssemblyVersion

Syncfusion.GridHelperClasses.Windows: 17.4460.0.46

See Also