Hi Todor,
I have double checked and I do have CellClickAction set to Row and RowSelectType=Single. But still no luck. When I click inside a cell on any row then it works, but when I click on a button directly then selectedRows.getItem(0) returns null. I have attached my sample code so that you can take a look at it.
Thanks for all your help.