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
640
UltragridExcelExporter - how to export Ultragrid's caption?
posted

Hi,

my Ultragrid has a caption which I like to export as first row in my excelfile.

How is this possible? The caption is visible in my grid but not in the exported excelfile....?!

Thank you.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    The grid caption is not exported to Excel automatically.

    What you could do is handle the BeginExport event of the UltraGridExcelExporter. The event gives you the worksheet that the grid will be exported to. So you could export some text to the first line of the worksheet. Then increment the CurrentRowIndex value on the EventArgs so that the grid starts exporting on the next row.

Children