Fit Grid size to its content

Hi all,

Can we fit the Grid size to its content (columns and rows). It seems that there is a default size calculates 400x500 when no dimensions are defined.

Best regards