Skip to main content

TcxCustomGridView.OnEndDrag Event

Occurs when finishing dragging an object.

Declaration

property OnEndDrag: TEndDragEvent read; write;

Remarks

The OnEndDrag event occurs when the dragging of an object ends, either by dropping the object or by canceling the dragging. Use the OnEndDrag event handler to specify any special processing that occurs when dragging stops.

X and Y specify the coordinates of the event relative to the target control which has accepted the dropped object. The target control is passed as the Target parameter. If Target is set to NIL, the dragged object was rejected.

The Sender parameter provides the grid site (TcxGridSite) object referring to the current View. If the target of the drag-and-drop event is a grid View, the Target parameter is also a grid site. A grid site is a control which owns Views, processes mouse and keyboard events and paints Views. To access the View displayed by a site object, see the TcxGridSite.GridView property.

See Also