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.

GDBG and GridToExcel

Thread ID:





43198 Apr 18,2006 09:21 AM Apr 19,2006 09:56 AM Windows Forms 2
Tags: GridControl
Michael Cruanes
Asked On April 18, 2006 09:21 AM

Hi, I am using Syncfusion and .Net 2.0. I want to export the GDBG to Excel using GridExcelConverter.GridToExcel. Unfortunately, the ComboBox column exports the value instead the displayed text. Is there any way to change that ? Thank you for your support, Michael

Administrator [Syncfusion]
Replied On April 19, 2006 02:31 AM

Hi Michael, There is no built-in support for display text exporting in a grid.But this can be achieved by changing the value member of the combobox celltype in a grid.Here is a code snippet. ChangeValueMamber(); Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl(); gecc.GridToExcel(this.gridControl1,@"C:\MyExcel.xls",Syncfusion.GridExcelConverter.ConverterOptions.Default); ResetChangeValueMember(); Here is a sample for implementing it. http://www.syncfusion.com/Support/user/uploads/DemoProj_9200e65d.zip Let me know if you need any further assistance. Thanks for choosing Syncfusion Products. Regards, Haneef

Michael Cruanes
Replied On April 19, 2006 09:56 AM

Hi Haneef, Unfortunately, I have some GUID CellValueType and it seems to be a problem for the cell validation. Anyhow, I am using now a temporary grid control that I fill with the displayed content of the GDBG. I call GridToExcel with the temporary grid as parameter and it is seems to work. I think you can close this issue. Kind Regards, Michael


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.