SfDataGrid allows you to exclude certain columns from being exporting to Excel or PDF.
Export to PDF
The below code illustrates how excludes certain columns from being Export to PDF.
The following screenshot shows the outcome on executing the above code. Note that OrderID has been excluded in the exported grid.
Export to Excel
Similarly, you can achieve the requirement when exporting to Excel by adding the column to be excluded in the ExcludeColumns property of the DataGridExcelExportingOption.
The below code illustrates how to excludes certain columns from being Export to Excel.
The following screenshot shows the final outcome on executing the above code. Note that CustomerID has been excluded in the exported grid.
Sample Link for Xamarin.Forms:
Sample Link for Xamarin.Android:
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|