DataGridView::BackColor Property

 
System_CAPS_noteNote

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

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)

public:
[BrowsableAttribute(false)]
property Color BackColor {
	virtual Color get() override;
	virtual void set(Color value) override;
}

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: