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

Reg:ExportToExcel

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

1 Reply

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

Loader.
Live Chat Icon For mobile
Up arrow icon