[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TCustomGrid.BeginAutoDrag

Starts an auto-drag operation in the grid control.

## Declaration

Source position: grids.pas line 984

`protected procedure TCustomGrid.BeginAutoDrag; override;`

## Description

BeginAutoDrag is an overridden procedure used to start an auto-dragging operation. Auto-dragging is in effect when DragMode contains the value dmAutomatic.

BeginAutoDrag examines the Options property to determine if column sizing (goColSizing) or row sizing (goRowSizing) have been enabled for the grid control. In addition, the CursorState property must contain a value that represents the action (gcsColWidthChanging or gcsRowHeightChanging). If either condition is not met, BeginDrag is called using False as an argument.

## See also

TCustomGrid.Options |  | Contains the set of optional features and/or behaviors enabled for the grid control.
TCustomGrid.CursorState |  | Current cursor state for the grid control.
TGridOption |  | Represents grid option values available for grid controls.
TGridCursorState |  | Enumerated type with cursor states available in a grid.