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

TCustomGrid.Sort

Sorts rows or columns in the grid.

Declaration

Source position: grids.pas line 1174

protected procedure TCustomGrid.Sort(

  ColSorting: Boolean;

  index: Integer;

  IndxFrom: Integer;

  IndxTo: Integer

); virtual;

Arguments

ColSorting

  

Indicates if the sort is performed for a column or a row.

Description

Sort is a method used to sort items in the grid. When ColSorting is True, it sorts the items in a column. Otherwise, it sorts a row. The three index values specify the items to be sorted.