Fixed Advanced formatting for CSV exports for Query Grids