2

Currently I am able to get the row data using gridApi but unable to get the info about what is the column index of selected row?

The function this.gridApi.getSelectedRows() has no properties for this.

Please help.

TAHA SULTAN TEMURI
  • 4,031
  • 2
  • 40
  • 66

1 Answers1

3

If you are looking for the displayed column index then try this, using the columnApi:

var focusedCell = this.gridApi.getFocusedCell();    
this.columnApi.getAllDisplayedColumns().indexOf(focusedCell.column)
Alexander Zbinden
  • 2,315
  • 1
  • 17
  • 21