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)

public virtual bool Selected { get; set; }

Property Value

Type: System.Boolean

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

Exception Condition

There is no associated DataGridView when setting this property.


The owning row is shared when setting this property.

.NET Framework
Available since 2.0
Return to top