returns the index of the selected cell or -1, if there is no selected cell
var ind=myTreeGrid.getSelectedCellIndex();