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.
Syncfusion Feedback

Reg:ExportToExcel

Thread ID:

Created:

Updated:

Platform:

Replies:

30813 Jun 24,2005 09:10 AM UTC Jun 24,2005 01:31 PM UTC Windows Forms 1
loading
Tags: GridControl
Anna Srinivasan
Asked On June 24, 2005 09:10 AM UTC

Hi, How do i give title to excel file. ExportToExcel_8110.zip

Administrator [Syncfusion]
Replied On June 24, 2005 01:31 PM UTC

Is your question how do you include column header text in your excel file? If so, you have to treat the headers as an extra row in excel since excel does not support column headers directly. So, when you start writing out the grid, first loop through the grid.TableDescriptor.VisibleColumns collection and write the HeaderText for each column to the first row in excel. Then start looping through the grid rows, but now when you set a value into excel, you have to add 1 to the row (so to offset the extra row that excel has that is not in the grid.)

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

;