2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
ExportingYou can transfer the contents of the GridControl and GridDataBoundGrid to Excel by using the GridToExcel method of the GridExcelConverter class. Here is the code example. C# Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl(); //Convert Grid to the Excel gecc.GridToExcel(this.gridControl1.Model,@"D:\excel.xls"); gecc.GridToExcel(this.gridDataBoundGrid1.Model,@"D:\excel.xls"); VB Dim gecc As New Syncfusion.GridExcelConverter.GridExcelConverterControl() 'Convert Grid to the Excel gecc.GridToExcel(Me.gridControl1.Model,"D:\excel.xls") gecc.GridToExcel(Me. gridDataBoundGrid1.Model,"D:\excel.xls")
Note: The following dll files should be added, along with the default dll files in reference folder: Syncfusion.GridConverter.Base, Syncfusion.GridConverter.Windows, Syncfusion.XlsIO.Base Samples: C#: Exporting VB: Exporting |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.