DataGrid::HeaderBackColor Property
.NET Framework (current version)
Gets or sets the background color of all row and column headers.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | While trying to set the property, a Color.Empty was passed. |
The following code example sets the background color of column headers using a value passed to the method.
Private Sub SetHeaderBackClr(Byval myGrid As DataGrid) myGrid.HeaderBackColor = System.Drawing.Color.CadetBlue End Sub
.NET Framework
Available since 1.1
Available since 1.1
Show: