IsSelected Property (Record)

Property: gets/sets whether the record is selected.
Public Property IsSelected As Boolean
public bool IsSelected {get; set;}

The DataPresenterBase maintains selected records, cells and fields in DataPresenterBase.SelectedItems object. The SelectedItem object exposes Records, Cells and DataPresenterBase.SelectedItemHolder.Fields properties that return selected records, cells and fields respectively. When you set the Selected property of a record, that record gets added to the selected records collection of the SelectedItems object. You can also select a record by calling the SelectedRecordCollection.Add method of the selected records collection.

NOTE: If you want to select a lot of records at once then use the SelectedRecordCollection.AddRange method of the SelectedRecordCollection for greater efficiency.


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