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

TCustomGrid.ColRowExchanged

Performs a notification when column or row data at the specified positions are exchanged in the grid control.

Declaration

Source position: grids.pas line 1004

protected procedure TCustomGrid.ColRowExchanged(

  IsColumn: Boolean;

  index: Integer;

  WithIndex: Integer

); virtual;

Arguments

IsColumn

  

True if columns are affected in the method. False if rows are affected.

index

  

Position for the initial column or row exchanged in the method.

WithIndex

  

Position for the other column or row exchanged in the method.

Description

ColRowExchanged has an empty implementation in TCustomGrid. It is implemented in descendent classes like TCustomDrawGrid to update the content in the grid and signal the OnColRowExchanged event handler (when assigned).


Version 4.0 Generated 2025-05-03 Home