Syncfusion.SfDataGridConverter.WinForms


Syncfusion.WinForms.DataGridConverter Namespace > DataGridExcelExportExtension Class > ExportToExcel Method : ExportToExcel(SfDataGrid,ObservableCollection<Object>,ExcelExportingOptions) Method
Specifies the SfDataGrid.
Specifies the Selected Items.
Specifies the instance of class which is used to set the exporting options.

ExportToExcel(SfDataGrid,ObservableCollection<Object>,ExcelExportingOptions) Method

Export Selected items to Excel.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function ExportToExcel( _
   ByVal grid As SfDataGrid, _
   ByVal selectedItems As ObservableCollection(Of Object), _
   ByVal excelExportingOptions As ExcelExportingOptions _
) As ExcelEngine
'Usage
 
Dim grid As SfDataGrid
Dim selectedItems As ObservableCollection(Of Object)
Dim excelExportingOptions As ExcelExportingOptions
Dim value As ExcelEngine
 
value = DataGridExcelExportExtension.ExportToExcel(grid, selectedItems, excelExportingOptions)

Parameters

grid
Specifies the SfDataGrid.
selectedItems
Specifies the Selected Items.
excelExportingOptions
Specifies the instance of class which is used to set the exporting options.

Return Value

Returns the instance of class Syncfusion.XlsIO.ExcelEngine.
AssemblyVersion

Syncfusion.SfDataGridConverter.WinForms: 17.2460.0.34

See Also