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; }

Exception Condition
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
Available since 2.0
Return to top
Show: