RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.CheckRowDrag Method

CheckRowDrag validates whether the row currently selected for dragging can be dropped at the current location.

Pascal
function CheckRowDrag(var Origin: Integer; var Destination: Integer; const MousePt: TPoint): Boolean; dynamic;
C++
__fastcall Boolean CheckRowDrag(int Origin, int Destination, const TPoint MousePt);

Use CheckRowDrag to validate that the row currently selected for dragging can be dropped at the current location. CheckRowDrag can change the Origin (the row being dragged) and/or the Destination (the drop target), as needed, to keep the grid's rows in order. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!