Records Property (DataPresenterBase.SelectedItemHolder)

Returns a reference to a collection of the selected Record objects. This property is read-only at run-time. This property is not available at design-time.
Public ReadOnly Property Records As SelectedRecordCollection
public SelectedRecordCollection Records {get;}

This property returns a reference to a collection of Record objects that are currently selected.

As records are selected and deselected, their corresponding Record objects are added to and removed from the SelectedRecordCollection returned by this property.

When a Record is selected or de-selected, the SelectedItemsChanging and SelectedItemsChanged events are raised.

Note: When a Record is selected the Cells collection is automatically cleared.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also