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.


public bool EnableHeadersVisualStyles { set; get; }


Documentation for this section has not yet been entered.


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.


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