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
815
Excel Export Repeating Column Headers Issue
posted

Hi
When using Excel Export to export a grid with two bands, the parent band column headers appear for every parent record in the spread sheet, also, filtered out records column headers also appear in the spread sheet - please see below.

Please note the export works fine when the grid has a single band.

We are using version - 10.3.20103.2145

Can you please advise on how to fix this problem.

Parents
  • 71886
    Offline posted

    Hello,

    For the first requirement I believe you could use the following code:

    private void ultraGridExcelExporter1_HeaderCellExporting(object sender, Infragistics.Win.UltraWinGrid.ExcelExport.HeaderCellExportingEventArgs e)
    {
    if(e.GridRow.Index>0)
    e.Cancel = true;
    }

    As to your second issue, I tried it and it worked fine for me. Could you please attach a small sample project which reproduces this behavior, I will be happy to take a look at it.

Reply Children