編輯

共用方式為


DataGridRow.IsSelected Property

Definition

Gets or sets a value that indicates whether the row is selected.

public:
 property bool IsSelected { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsSelected { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsSelected : bool with get, set
Public Property IsSelected As Boolean

Property Value

true if the row is selected; otherwise, false. The registered default is false. For information about what can influence the value, see DependencyProperty.

Attributes

Applies to

See also