Any columns hidden in the grid before method call to export to Excel are hidden in exported Excel too.
Example of Usage of Columns().hide():
Below code hides columns with dataIndx: 'ShipCountry' and 'ShipVia'
grid.Columns().hide({
diHide: ['ShipCountry', 'ShipVia']
}
//now export to Excel.
grid.exportExcel()