Getting selected cell value

How can we get the selected cell value after clicking on the particular cell???

Can be done as

grid.attachEvent(“onRowSelect”,function(id,ind){
alert(grid.cells(id,ind).getValue())
})