Grid Header

Hi,
on right clicking the header how to get the id of the column

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