How to display a download link in a datagrid

Hello, I'd like to display a download link to a file in a datagrid. In my model I have a relationship between the entity I want to show in the data grid and a FileDocument. However I can't find a way of displaying the link in the datagrid. I have found a way using the template grid, however I want to use the DataGrid because I want to retain the column headers and sorting capabilities. Any ideas? Thanks!!
1 answers

If you want the link in the grid, you could consider doing this with the DeepLink module. You would need a microflow which would return the file for download based on the input you pass in the link (This could be fileID or object id which would allow the microflow to retrieve the FileDocument for download). The URL needed to trigger this microflow would then have to be generated and displayed as one of the attributes in the grid. However I'm not sure if you can make it function as a link this way or if users would be able to just click it.

Alternatively you'd have to add a button to the datagrid control bar which returns the file associated with the selected entry. (Just pass the object, retrieve the file object and return this with the download action)