System.Windows.Forms.DataGridView.RowHeadersBorderStyle Property

Gets or sets the border style of the row header cells.


public DataGridViewHeaderBorderStyle RowHeadersBorderStyle { set; get; }


Documentation for this section has not yet been entered.


If the DataGridView.RowHeadersBorderStyle property is set to anything other than DataGridViewHeaderBorderStyle.Single, the DataGridView.GridColor property must be a system color.

You cannot set this property to the DataGridViewHeaderBorderStyle.Custom value, which is a read-only value indicating that the border style has been customized through the use of the DataGridView.AdvancedRowHeadersBorderStyle property.


If visual styles are enabled for the application through the Application.EnableVisualStyles method and the DataGridView.EnableHeadersVisualStyles property is true, the row headers are painted using the current theme. In this case, the value of the DataGridView.RowHeadersBorderStyle property is ignored for all row headers except the DataGridView.TopLeftHeaderCell, to which the theme is not applied.


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