Here Mudassar Khan has explained with an example, how to export WebGrid to Excel file in ASP.Net Core MVC.
The WebGrid will be populated from database using Entity Framework and then the WebGrid will be sent as HTML string to the Controller which will be exported to Excel file in ASP.Net Core MVC.
↧