https://docs.mendix.com/refguide/control-bar
Just right-click the control bar and add the button you want
EDIT: and if you mean add a button on the record row: that’s not possible :) Either create a list view or template grid (that do allow buttons/widgets) and in you want, you can style it to resemble a data grid.