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. Image for the cookie policy date
close icon

Export Grid using GridExcelConverter

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

3 Replies

AD Administrator Syncfusion Team 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.

CS6.zip


PM Pankaj Minda 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


ST stanleyj Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon