When you set the AutoSize property to true, the control becomes enormous - Size (5002, 5002).
There is no specific logic for auto-sizing the control. We should either remove the AutoSize property or size the control according to the rows/columns it uses.