Skip to content

XTPGridDragDrop Enumeration

Description

Drag and Drop Effects.

Members

Member Description
xtpGridAllowDrop Allow all drop operations. This allows items to be dropped into the Grid Control.
xtpGridAllowDragCopy Allow copy operation. Please see Note 1 in the Remarks section.
xtpGridAllowDragMove Allow move operation. Please see Note 2 in the Remarks section.
xtpGridAllowDrag Allow all drag operations. This is a combination of both xtpGridAllowDragCopy and xtpGridAllowDragMove.
xtpGridDontDropAsText Do not drag record as plain text.

Remarks

The EnableDragDrop method uses a combination of XTPGridDragDrop flags to set the drag and drop effects for the Grid Control.

Note 1:

The xtpGridAllowDragCopy flag specifies that the currently selected GridRecord objects will be copied or "duplicated" when dragged and dropped. This means the original items will not be moved, and a new "duplicate" item will be created in the spot where the items are dropped. This option allows items to be copied within the Grid control or outside of the Grid control. This option only applies to GridRecord objects that are selected; any selected group rows will just be ignored.

Note 2:

The xtpGridAllowDragMove flag specifies that the currently selected GridRecord objects will be moved when dragged and dropped. This means the original item will be removed from its original position and inserted into the spot where the items are dropped. This option allows items to be copied within the Grid control or outside of the Grid control. This option only applies to GridRecord objects that are selected; any selected group rows will just be ignored.

See Also


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