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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG and GridToExcel

Thread ID:

Created:

Updated:

Platform:

Replies:

43198 Apr 18,2006 01:21 PM UTC Apr 19,2006 01:56 PM UTC WinForms 2
loading
Tags: GridControl
Michael Cruanes
Asked On April 18, 2006 01:21 PM UTC

Hi, I am using Syncfusion 4.1.0.62 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 06:31 AM UTC

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 01:56 PM UTC

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

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.

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

;