9

This code

slickgrid.onDblClick.subscribe(function(e){         
    var cell = slickgrid.getCellFromEvent(e);
    console.log(cell.row, cell.cell);
});

prints 0, 0 if I double click the first row, on the first column - and so on.

But since column order can change at any given time, I need to get its name using its index.

How to achieve this?

deprecated
  • 5,142
  • 3
  • 41
  • 62

1 Answers1

19

Just get a reference to the current columns array:

grid.getColumns()[cell.cell]
Tin
  • 9,082
  • 2
  • 34
  • 32