I have created a sample application wherein the label is dynamically populated to 'Test-2'
But when exported to excel it still inherits 'Bonus' as the label name.
Can someone assist on how to maintain Test-2 in excel sheet as well
Solved..
Hi,
Thank you for posting in the forums. I am glad that you have resolved the issue. Here is a possible solution that could be helpful if someone else from the community needs the same functionality.
The CellExporting event of the DataPresenterExcelExporter object could be handled. In the handler a check for the displayed value for the first cell in the first row can be made and its value can be changed. I have attached the modified sample to demonstrate this approach.