DataGridView.BackColor Property

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the background color for the control.

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

[<BrowsableAttribute(false)>]
override BackColor : Color with get, set

Property Value

Type: System.Drawing.Color

A Color that represents the background color of the control. The default is the value of the DefaultBackColor property.

This property is not relevant to this control. To set the background color of the portion of the DataGridView control not occupied by cells, use the BackgroundColor property.

.NET Framework
Available since 2.0
Return to top
Show: