Hi Gkrish,
Thanks for the update. Is it possible for you to explain us more details or modify the sample, so it help us to solve your issue earlier. The following attached sample is working fine with excel export, please let us know if you meant different scenario.
Here is a sample.
ModifiedExcel Export.zipBest regards,
Haneef