System.Windows.Forms.DataGridViewCell.InheritedStyle Property

Gets the style currently applied to the cell.


public DataGridViewCellStyle InheritedStyle { get; }


Documentation for this section has not yet been entered.


The System.Windows.Forms.DataGridView control displays its cells using the styles indicated by the cell DataGridViewCell.InheritedStyle property, which inherits styles from other properties of type System.Windows.Forms.DataGridViewCellStyle. The styles specified through the DataGridViewCell.Style property override the styles specified through all other cell-style properties, but do not necessarily indicate all the styles that contribute to the cell's appearance.

For more information, see Cell Styles in the Windows Forms DataGridView Control.


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