Is there a way to set the captions of the columns in a data grid to a string of an object? The users define the column names while creating the parent object. I plan to get those column names to the next page displaying the contents with the association. then the users can fill the data grid with an import from excel.
No, you can't set the column caption dynamically.
You could create 2 Listviews, one nested inside of another. In the parent Listview, you can have dynamic labels based on values of that entity (these would be your column captions) and then in the child Listview, you could have the records that were imported. You can style both the parent and child list views to look like a datagrid.