Version

Cells Property (DataPresenterBase.SelectedItemHolder)

Returns a reference to a collection of the selected Cell objects. This property is read-only at run-time. This property is not available at design-time.
Syntax
'Declaration
 
Public ReadOnly Property Cells As SelectedCellCollection
public SelectedCellCollection Cells {get;}
Remarks

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

As cells are selected and deselected, their corresponding Cell objects are added to and removed from the SelectedCellCollection returned by this property.

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

Note: When a Cell is selected the Records collection is automatically cleared.

Requirements

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