Create a microflow for the action you want to complete.
Add an Action button to the datagrid control bar which points to this microflow.
Set the action button as the default button. In this way, when the user clicks (or double clicks) a row in the datagrid, the microflow will be executed for the clicked object.
You can set the default button trigger (single or double click) in the properties of the datagrid.