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
1800
Grid Excel Exporter - Setting legend on top
posted

Hi,

I have a grid and the grid has colored rows to differentiate. I have hidden the grid and use excel exporter to export to excel. It exports the data correctly and i get the colors in the excel also which is what i want.

However i need a legend just above the header to color a cell and say what it means. Can it be done using any event of excel exporter ? or is there any other way to do it?

Thanks,

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Sure. Use the BeginExport event. The event will pass in the WorkSheet that the grid is being exported to. So you can set values or apply styles to any cells you like. Then you just have to update the CurrentRowIndex property on the event args so that the grid export start below the rows you used.

Children