DataGridViewCell.InheritedState Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current state of the cell as inherited from the state of its row and column.

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

[BrowsableAttribute(false)]
public DataGridViewElementStates InheritedState { get; }

Property Value

Type: System.Windows.Forms.DataGridViewElementStates

A 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
Return to top
Show: