DataGridViewColumn.InheritedStyle Property


Gets the cell style currently applied to the column.

 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

Property Value


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.

Applies to

See also