Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
Problem with Column Headings UltraWinGrid Export operation
posted
Hello, I am exporting the results of an UltraWinGrid to Excel. The Grid consists of two bands. Prior to calling the export, I set the HeaderPlacement of my 1st band to FixedOnTop then call the export. Here is the code: gvEmployeeEarnedHours.DisplayLayout.Bands[0].Override.HeaderPlacement = Infragistics.Win.UltraWinGrid.HeaderPlacement.FixedOnTop; ExportHelper helper = new ExportHelper(); helper.ExportGridToExcel("Earned Hours", gvEmployeeEarnedHours, Infragistics.Documents.Excel.WorkbookFormat.Excel97To2003); The ExportHelper is a reusable class I've created that simply calls the UltraWinGridExport object internally to perform the actual Export and nothing exceptional is written there to that would alter the data exported. When I open the exported file, not only do the column headers for band[0] appear on top, but in the 2nd row of the excel spreadsheet the column headers for band[1] appear, not exactly what I am expected (see the attached). Is there some way to prevent this from happening. Note, I am using the latest version Infragistics 11.2 CLR 4x.
Parents Reply Children