How to fetch field value from grid

I would like to add a button to the grid that will delete specific record base on field ID.
I would like to click on the grid and then read the value of that record and then pass it as a parameter

Why dont you make a link from grid to form ?

Bc on grid I can add total on the bottom of the grid.

You can add a RUN button to select 1 or more field and delete or add a html field connected to a blank form with the code to delete the record.

Thank you @gbillot3 . That works. I forgot about that option