Export (0) Print
Expand All

DataGridViewColumn.InheritedStyle Property

Gets the cell style currently applied to the column.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

'Declaration
<BrowsableAttribute(False)> _
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

Property Value

Type: System.Windows.Forms.DataGridViewCellStyle
A DataGridViewCellStyle that represents the cell style used to display the column.

This property is useful to determine which cell styles are applied to all cells in a column regardless of any row styles that are also applied to the cells. The column InheritedStyle property inherits its values from the DefaultCellStyle and the DataGridView.DefaultCellStyle property.

For more information about cell style inheritance, see Cell Styles in the Windows Forms DataGridView Control.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft