While you can assign dynamic data to a Grid, it's not possible to set a dynamic primary key. In my particular case, I am dealing with dynamic columns, and setting these columns manually feels kind of inconsistent Plus, it's just a pain to go through this process each time.
In the screenshot below you can see what part of the UI I am referring to;