How to export current page/selected record?
This KB showcase the example to export the current page/selected records from the Grid. In the ToolbarClick event, we have to update selected records or currentViewData into Grid model and export the Grid.
Likewise for ASP.Net Grid, retrieve the Grid model from the HttpContext. Refer the following code example.
The following screenshot show Exported Grid and Grid with Exporting enabled.
Figure 1: CurrentViewData of Grid in Exported Excel
Figure 2: Exporting Grid
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|6332||02/16/2016||02/16/2016||ASP.NET Web Forms||Grid|