Select grid record

Hi, All!

Can someone advice me on how to get record in a grid, which is selected by the user?

For example I have a grid. User can select any record and submit a button?

Thanks in advance!

I think you are talking about SETSELECTIONFILTER. Try looking up information about that function and see if it is what you are looking for.