The exception occurs only when AutoSizeRows is set to true and the binding code is inside the form's constructor.