Pass data grid selection to button outside data grid

1
I have a snippet call that accepts Entity1 and it contains Add, Remove buttons and a data grid Add button accepts Entity1 and searches external database by having Entity1 attributes as search criteria and populates the data grid rows (Entity2) Remove button should remove the selected row on the data grid and the same row data should be deleted from external database using a service. This means microflow invoked on button click accepts row selected (Entity2) Also I need hide remove button if no row selected on data grid   I tried below mentioned Create an association between Entity1 and Entity2 Add Data View that listens to data grid Add buttons to Data View Problem with above approach is Add button is not clickable if no row selected in data grid.   
asked
0 answers