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

Export Grid using GridExcelConverter

Thread ID:





40241 Jan 28,2006 01:36 PM UTC Jan 30,2006 02:37 PM UTC WinForms 3
Tags: GridControl
Pankaj Minda
Asked On January 28, 2006 01:36 PM UTC

how do i export grid to excel using the GridExcelConverter class?

Administrator [Syncfusion]
Replied On January 30, 2006 06:58 AM UTC

Hi Pankaj, Attached is a sample which shows how to export a grid using the GridExcelConverterControl class. Regards, Calvin.


Pankaj Minda
Replied On January 30, 2006 01:57 PM UTC

Thanks for the sample. 1) Is there any option to turn off the Message Box being shown? 2) Text Alignment in covered cells is not proper, just add the following line to your sample to reproduce: gridControl1.CoverredRanges.Add(GridRangeInfo.Cells(1,1,2,2)) Regards, Pankaj

stanleyj [Syncfusion]
Replied On January 30, 2006 02:37 PM UTC

Hi Pankaj, We will get these corrected, by setting the alignment for the grid cells there is proper alignment in the excel and that mismatch could be avoided. gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(1,1,2,2)); this.gridControl1.TableStyle.HorizontalAlignment = GridHorizontalAlignment.Left; this.gridControl1.TableStyle.VerticalAlignment = GridVerticalAlignment.Top; Thanks, 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

or the page will be automatically redirected to 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