Question: how to export selected data from gridview to excel in asp.net using c#?
Answer: Steps :
Step - 1 : Create New Project.
Step-2: Add a Database.
Step-3: Create table for fetch data.
Step-4: Add Entity Data Model.
Step-5: Add a Webpage and Design for Show Data in Gridview & Export Selected rows to Excel File.
Step-6: Write following code in Page_Load event for Show data in Gridview.