You can use the GridView as a select widget: Suppose you want to relate an existing object of type X to some object of type Y.
On the gridview assign 'x._tempselection' to the 'selection reference' property
(Optional) define an action with 'Fire on selection' enabled, and a microflow (for context object) that has X as input parameter. In the microflow you can read the temporarily assocation
(Optional) Add a custom save button to the dataview, in the microflow of the save button can read and store the _tempselection association
N.B. 1: Note that this pattern works for multi selection as wel
N.B. 2: If no validation or special logic is required, you could use the association you want to set as well, instead of the temp association. But note that the association might change as soon as you open the form.