issue #23796 - csv export from gridbox

Querying by idAttribute (aka natural key) instead of by uuid will make this part more pleasant as well.