TcxCustomGridTableOptionsBehavior.DragFocusing Property
Specifies the manner in which the target row is focused in a drag-and-drop operation.
Declaration
property DragFocusing: TcxGridDragFocusing read; write; default dfNone;
Property Value
Type | Default |
---|---|
TcxGridDragFocusing | dfNone |
Remarks
By default, the DragFocusing property is set to dfNone and this indicates that focus is not moved when dragging/dropping over the current View.
Set DragFocusing to dfDragOver to automatically focus the record under the cursor when dragging an object over the current target View. Set the DragFocusing property to dfDragDrop to restrict moving focus to the record under the cursor when dropping an object. When a focused record is changed, the View’s OnFocusedRecordChanged event occurs.
The OnDragOver and OnDragDrop events are fired when you drag and drop an object over the current View.
The default value of the DragFocusing property is dfNone.
See Also