API:Vcl.DBGrids.TCustomDBGrid.CheckColumnDrag

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CheckColumnDrag(var Origin, Destination: Integer;  const MousePt: TPoint): Boolean; override;

C++

DYNAMIC bool __fastcall CheckColumnDrag(int &Origin, int &Destination, const System::Types::TPoint &MousePt);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

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

Vcl.DBGrids.TCustomDBGrid.CheckColumnDrag inherits from Vcl.Grids.TCustomGrid.CheckColumnDrag. All content below this line refers to Vcl.Grids.TCustomGrid.CheckColumnDrag.

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

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.

See Also