RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.CheckColumnDrag Method

CheckColumnDrag validates whether the column currently selected for dragging can be dropped at the current location.

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

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

 

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