DataGridViewCell::InheritedState Property
.NET Framework (current version)
Gets the current state of the cell as inherited from the state of its row and column.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property DataGridViewElementStates InheritedState { DataGridViewElementStates get(); }
Property Value
Type: System.Windows.Forms::DataGridViewElementStatesA bitwise combination of DataGridViewElementStates values representing the current state of the cell.
| Exception | Condition |
|---|---|
| ArgumentException | The cell is not contained within a DataGridView control and the value of its RowIndex property is not -1. |
| ArgumentOutOfRangeException | The cell is contained within a DataGridView control and the value of its RowIndex property is -1. |
.NET Framework
Available since 2.0
Available since 2.0
Show: