DataGridViewBand::Selected Property
.NET Framework (current version)
Gets or sets a value indicating whether the band is in a selected user interface (UI) state.
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 | The specified value when setting this property is true, but the band has not been added to a DataGridView control. -or- This property is being set on a shared DataGridViewRow. |
This property can be set only if a DataGridView with the SelectionMode property enabled is associated with the band.
.NET Framework
Available since 2.0
Available since 2.0
Show: