index of the grid's head

Click the head of grid,how to get the index of column?

mygrid.attachEvent(“onHeaderClick”,function(index){ alert(index); })