Edit

Share via


DataGridViewColumn.InheritedStyle Property

Definition

Gets the cell style currently applied to the column.

public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
[System.ComponentModel.Browsable(false)]
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
[System.ComponentModel.Browsable(false)]
public override System.Windows.Forms.DataGridViewCellStyle? InheritedStyle { get; }
[<System.ComponentModel.Browsable(false)>]
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.

Attributes

Remarks

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