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
60
Ultrawingrid Multiband Excel export header repeat issue
posted

Hi,

I'm new to Infragistics and am using Ultrawingrid with two bands. When I export the data to excel, the Main band header gets repeated and I dont want that to happen.

 

I'm ok with the second band header repeating as it only shows when I expand in excel. What should I do so that main header displays only once in the first row?

thanks,

Sri

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Sri,

    Assuming you are using the latest version of NetAdvantage, then you can control the appearance of the headers using the HeaderPlacement property.

    What you would do here is handle the ExportStarted event of the UltraGridExcelExporter. This event passes you the export layout. This layout is a clone of the DisplayLayout of the on-screen grid. So you can modify the export layout without affecting the on-screen grid.

    So use e.ExportLayout.Override.HeaderPlacement to get the behavior you want in the exported Excel file.

Children