Skip to content

SelectionChanging Event

Description

Occurs when the selection is in the process of changing in the GridControl.

Syntax

Public Event SelectionChanging( _
    ByVal NewRow As GridRow, _
    ByVal ChangeType As XTPGridSelectionChangeType, _
    ByRef Cancel As Boolean _
)

Parameters

  • NewRow: Reference to the row added, removed, or cleared to/from the selection.
  • ChangeType: The type of selection being performed.
Value Description
xtpGridSelectionAdd Row will be added to selected rows collection.
xtpGridSelectionRemove Row will be removed from selected rows collection.
xtpGridSelectionClear The selected rows collection will be cleared.
  • Cancel: Set to True to cancel the operation.

Remarks

This event can be used to catch when a row is added to/from the current selection or when the selection is being cleared. Set Cancel to True to cancel the action.

See Also

GridControl Control


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.