Remove a column from excel while using excelExport and dataGrid

Hi,

I am using dataGrid and excelExportAction.
I want to remove certain columns from the excel sheet.
I have tried using removeColumnValueProvider, but still the data is added in the excel sheet

Thanks in advance

I am using customAction extending ExportAction.

Now the method removeColumnValueProvider in working on Table component, but not on dataGrid component.