Selected Property

DataGridViewCell.Selected Property

 

Gets or sets a value indicating whether the cell has been selected.

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

[<BrowsableAttribute(false)>]
abstract Selected : bool with get, set
[<BrowsableAttribute(false)>]
override Selected : bool with get, set

Property Value

Type: System.Boolean

true if the cell has been selected; otherwise, false.

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
Return to top
Show:
© 2016 Microsoft