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.
Unfortunately, activation email could not send to your email. Please try again.

Export Grid using GridExcelConverter

Thread ID:

Created:

Updated:

Platform:

Replies:

40241 Jan 28,2006 08:36 AM Jan 30,2006 09:37 AM Windows Forms 3
loading
Tags: GridControl
Pankaj Minda
Asked On January 28, 2006 08:36 AM

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

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

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

CS6.zip

Pankaj Minda
Replied On January 30, 2006 08:57 AM

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 09:37 AM

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

CONFIRMATION

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.

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.

;