issue #23796 - csv export from gridbox

I'd add a comment here explaining the two use cases. It makes perfect sense to me but might be a bit mysterious to other passersby.