RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.CheckColumnDrag Method

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; override;
C++
virtual __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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!