DataControlBase.SelectedItems Property

Gets or sets a list of data objects that correspond to rows/nodes selected within a View.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public IList SelectedItems { get; set; }
Public Property SelectedItems As IList

Property Value

Type Description
IList

A list of data objects that correspond to rows/nodes selected within a View.

Remarks

Refer to the Binding to a Collection of Selected Items topic for more information.

Example

The following code sample binds the ListBoxEdit to the SelectedItems collection to show the GridControl's selected rows in the ListBox:

<dxg:GridControl x:Name="grid" SelectionMode="Row" ... />
<GroupBox Header="Selected Records">
    <dxe:ListBoxEdit ItemsSource="{Binding SelectedItems, ElementName=grid}"
                     DisplayMember="Name"/>
</GroupBox>
See Also