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


Thread ID:





30813 Jun 24,2005 09:10 AM UTC Jun 24,2005 01:31 PM UTC WinForms 1
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.)


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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