fires on click on a grid header cell
pivot.grid.events.on("HeaderCellClick", function(column,e){ // your logic here });
Related sample: Grid events