Premmerce Documentation > Table or Grid > Disable export a column, hide from exported files
About Premmerce
Installation
Table or Grid
CSS and JS
General
Go to Helpers folder > TableConfig.cs file
Scroll to the specific TableConfig class
Add Exportable = false to that column
In the example below, the Description column is not exportable, and it will be hidden from the exported files like Excel, CSV, PDF, and DOCX.
public static class ImpactTableConfig
{
// Specifies the columns to display in the table
public static List<ColumnProperty> TableColumns = new List<ColumnProperty>() {
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Ordering) },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Name) },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Description)**, Exportable = false** },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.CreatedOn), IsDateTimeColumn = true, ValueKey = nameof(ImpactViewModel.IsoUtcCreatedOn)}
};
}