get column header name using index

Hi

I have an event which executes a drag and drop column move.

dataGrid.attachEvent(“onBeforeCMove”, function(a, b) {
return confirm("Allow move column " + dataGrid.getColumnId(a) + " to position " + dataGrid.getColumnId(b));
});

The move performs ok but instead of displaying columns index id’s in the confirm, I want to display the column names. I tried the code above but this didn’t work.
Has anybody any ideas? Is there a getHeader(id) function?

thanks
Scott

Try to use getColumnLabel(cin, ind) method docs.dhtmlx.com/doku.php?id=dhtm … olumnlabel