System.Windows.Forms.DataGridView.EnableHeadersVisualStyles Property

Gets or sets a value indicating whether row and column headers use the visual styles of the user's current theme if visual styles are enabled for the application.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool EnableHeadersVisualStyles { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can enable visual styles for your application by calling the Application.EnableVisualStyles method before calling the erload:System.Windows.Forms.Application.Run method. If DataGridView.EnableHeadersVisualStyles is set to true, all header cells except the DataGridView.TopLeftHeaderCell are painted using the current theme.

Requirements

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