In my code behind , I have converted the datatable into a list of Entities to display in the view. I am binding this list to my gridview. I am able to get the data in the grid view.
Now, I want to view this data in an excel instead of a grid view i.e. my result should appear in excel instead of displaying in the gridview.
It is not an export to Excel. I want my result to be populated in the excel sheet instead of getting displayed in the gridview.
Please help me to achieve this.
Thanks!!!