In 4.0 data grid can have a microflow as datasource.
The current workaround is to have a constraint in the grid based on an temporarily association that is set by your microflow, and refresh the grid.