Syncfusion.GridConverter.Windows
Example 


ExcludeColumns Property (ExcelExportingOptions)

Gets or sets the columns which has to be excluded for exporting.
Syntax
'Declaration
 
Public Property ExcludeColumns As List(Of String)
'Usage
 
Dim instance As ExcelExportingOptions
Dim value As List(Of String)
 
instance.ExcludeColumns = value
 
value = instance.ExcludeColumns
public List<string> ExcludeColumns {get; set;}
Example
This example shows how to use ExcludeColumns property.
GridGroupingExcelConverterControl converter = new GridGroupingExcelConverterControl();
ExcelExportingOptions excelExportingOptions = new ExcelExportingOptions();    
List <string> excludeColumns = new List<string>();
excludeColumns.Add("Column1");
excludeColumns.Add("Column2");
excelExportingOptions.ExcludeColumns = excludeColumns;
converter.ExportToExcel(this.gridGroupingControl1, "Sample.xlsx", excelExportingOptions);
Dim converter As New GridGroupingExcelConverterControl()
Dim excelExportingOptions As New ExcelExportingOptions()
Dim excludeColumns As New List(Of String)()
excludeColumns.Add("Column1")
excludeColumns.Add("Column2")
excelExportingOptions.ExcludeColumns = excludeColumns
converter.ExportToExcel(Me.gridGroupingControl1, "Sample.xlsx", excelExportingOptions)
AssemblyVersion

Syncfusion.GridConverter.Windows: 17.4460.0.46

See Also