DBTable control detail button

I'm trying to have a DB Table control with a button to go to the details.
However I have some problems.

1- The last item never managed to add the button
2- When the DB Table Control is paginated, the button disappears on the second page.


Any tips?
To create the button use the following example.