Passing value to another form from a datagrid

How can I pass the value of a particular cell on a datagrid to another form that opens up? I want that form to display the record selected on the datagrid. I tried using properties but it would keep passing the value=0 as opposed to the actual value of the rowid.

Loader.
Up arrow icon