In SfDataGrid, you can customize the cell value while exporting it into Excel and PDF by using CellsExportingEventHandler with ExcelExportingOptions and PdfExportingOptions class. The cell value is displayed in SfDataGrid like below, Figure 1: SfDataGrid view Excel Exporting: The above cell value of IsClosed (GridCheckBoxColumn) column is customized while exporting to Excel like below, C#:
The cell value of IsClosed column has been customized in Exported Excel Sheet like below,
Figure 2: Excel View PDF Exporting: The above cell value of IsClosed (GridCheckBoxColumn) column is customized while exporting to PDF like below, C#:
The cell value of IsClosed column has been customized in Exported PDF document like below, Figure 3: PDF View
Sample Links:
|
This page will automatically be redirected to the sign-in page in 10 seconds.