'Declaration Public Event SelectedItemsChanging As EventHandler(Of SelectedItemsChangingEventArgs)
public event EventHandler<SelectedItemsChangingEventArgs> SelectedItemsChanging
The event handler receives an argument of type SelectedItemsChangingEventArgs containing data related to this event. The following SelectedItemsChangingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from Infragistics.Windows.Controls.Events.CancelableRoutedEventArgs) | |
Handled (Inherited from System.Windows.RoutedEventArgs) | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
NewSelection | Returns the new selection (read-only). |
OriginalSource (Inherited from System.Windows.RoutedEventArgs) | Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class. |
RoutedEvent (Inherited from System.Windows.RoutedEventArgs) | Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance. |
Source (Inherited from System.Windows.RoutedEventArgs) | Gets or sets a reference to the object that raised the event. |
Type | Returns the type of object that triggered the selection change (read-only). |
Three types of items can be selected, Records, Cells and Fields. This functionality is controlled by the following properties:
The SelectedItems object exposes 3 collections (DataPresenterBase.SelectedItemHolder.Records, DataPresenterBase.SelectedItemHolder.Cells and DataPresenterBase.SelectedItemHolder.Fields) that can can be used to select/de-select specific items. In addition, selection can be affected by setting the Record's Record.IsSelected, the Cell's Cell.IsSelected and the Field's Field.IsSelected properties.
The following describes how selection behaves in various scenarios:
Note: Record and Cell selection is mutually exclusive. Selecting one or more Records will automatically clear the Cell selection and vice versa.
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
DataPresenterBase Class
DataPresenterBase Members
FieldLayoutSettings Property
SelectionTypeCell Property
SelectionTypeField Property
SelectionTypeRecord Property
FieldSettings Property
LabelClickAction Property
SelectedItems Property
SelectedItemsChanged Event
DataPresenterBase.SelectedItemHolder Class
OnSelectedItemsChanging Method
SelectedItemsChangingEvent Field
SelectedItemsChangingEventArgs Class