Thanks for the response. I am using below code and this works.
var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row(); cell = activeRow.get_cellByColumnKey("ID"); ID= String(cell.get_value());