Get the Column of The Corresponding Cell
When a cell(header cell, cell, footer cell, group footer cells) is exported through the ExportToXlsx or ExportToPdf methods , the arguments of the ElementExportingToDocument event can be cast to GridViewCellExportingEventArgs. Thus, the column of the corresponding cell can be accessed.
The following example illustrates the approach: