DataGridView.DefaultSize Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the default initial size of the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override Size DefaultSize { get; }

Property Value

Type: System.Drawing.Size

A Size representing the initial size of the control, which is 240 pixels wide by 150 pixels high.

.NET Framework
Available since 2.0
Return to top