System.Windows.Forms.DataGridView.GridColor Property

Gets or sets the color of the grid lines separating the cells of the System.Windows.Forms.DataGridView.

Syntax

public System.Drawing.Color GridColor { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can set the DataGridView.GridColor property to any color when you use a single border; with other types of borders, the colors are specified by the operating system. If visual styles are enabled for the application through the Application.EnableVisualStyles method, the DataGridView.GridColor property is ignored, and the current theme's colors are used.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0