DataGridViewCell::Selected Property
.NET Framework (current version)
Gets or sets a value indicating whether the cell has been selected.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property bool Selected { virtual bool get(); virtual void set(bool value); }
| Exception | Condition |
|---|---|
| InvalidOperationException | There is no associated DataGridView when setting this property. -or- The owning row is shared when setting this property. |
.NET Framework
Available since 2.0
Available since 2.0
Show: