System.Windows.Forms.DataGridView.GridColor Property

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


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


Documentation for this section has not yet been entered.


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.


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