You can achieve this by adding a dataview with listen to widget as datasource and place the buttons inside.
You can have another dataview above your datagrid and setting the dataview’s datasource as listen to widget for this grid. So that based on your row selection in the buttons will be enable/disable.
Or to show the buttons only when the row selected then you can add a visibility to your button ‘$currentObject != empty’
Hope this helps!
You can disable the button by using Data view and 'disabled' pre defined Function.