Icon SortRows Method

procedure SortRows

Available In: Visual Client Applications

Use this method to sort an un-bound grid when the Sorted property is True and sort columns have been specified for the grid. The TGridColumn SortDirection property setting controls which columns are sorted, and how.

If no columns have a SortDirection property other than sdNone, then this method does nothing.

The SortCaseInsensitive and SortLocaleInsensitive properties control how the sort is performed.

Information The SortRows method only needs to be called once after the sort directions are initially assigned for the grid columns. After that point, any row operations will automatically maintain the active sort.