We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridExcelConverterControl does not include header row on export of GDBG

Thread ID:





38620 Dec 15,2005 03:32 PM UTC Feb 21,2006 08:42 AM UTC WinForms 2
Tags: GridControl
Jay Mooney
Asked On December 15, 2005 03:32 PM UTC

Here''s my code: // Create Excel automation objects IWorkbook myWorkBook = ExcelUtils.CreateWorkbook(1); IWorksheet sheet = myWorkBook.Worksheets[0]; Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl(); gecc.GridToExcel(this.Model, sheet); // Save the workbook to disk so we can launch it via the file system myWorkBook.SaveAs(path); myWorkBook.Close(); ExcelUtils.ThrowNotSavedOnDestroy = false; if (openFile) { // Launch the saved workbook Process proc = new Process(); proc.StartInfo.FileName = path; proc.Start(); } Am I missing a setting?

stanleyj [Syncfusion]
Replied On December 16, 2005 06:10 AM UTC

Hi Jay, A defect has been logged. Here is the link to the open issues.http://www.syncfusion.com/support/issues/xlsio/Default.aspx?ToDo=view&questId=1246 Regards, Stanley

stanleyj [Syncfusion]
Replied On February 21, 2006 08:42 AM UTC

Hi Jay, Please try setting ConverterOptions. Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl(); gecc.GridToExcel(this.gridDataBoundGrid1.Model, "sheet.xls",Syncfusion.GridExcelConverter.ConverterOptions.ColumnHeaders|Syncfusion.GridExcelConverter.ConverterOptions.RowHeaders); Best regards, Stanley


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon