This documentation is archived and is not being maintained.

DataGridViewAdvancedBorderStyle.All Property

Gets or sets the border style for all of the borders of a cell.

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

public DataGridViewAdvancedCellBorderStyle All { get; set; }

ExceptionCondition
InvalidEnumArgumentException

The specified value when setting this property is not a valid DataGridViewAdvancedCellBorderStyle values.

ArgumentException

The specified value when setting this property is NotSet.

-or-

The specified value when setting this property is OutsetDouble, OutsetPartial, or InsetDouble and this DataGridViewAdvancedBorderStyle instance was retrieved through the DataGridView.AdvancedCellBorderStyle property.

If the Left, Right, Top, and Bottom properties are not set to the same DataGridViewAdvancedCellBorderStyle value, the All property value is NotSet.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: