SortDataSource - cCJGridDataSource
Sorts the datasource based on the settings in the passed sort rules
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| GridSortRules | tGridSortRules | A tGridSortRules struct containing the information required to sort the data in the datasource |
Syntax
Procedure SortDataSource tGridSortRules GridSortRules
Call Example
Send SortDataSource GridSortRules
Description
SortDataSource sorts the data in the datasource according to the rules specified in the passed tGridSortRules struct. SortDatasource is called by the cCJGrid object's cCJGrid.SortGridByColumn. SortGridByColumn determines the sorting rules by sending the message ColumnSortRules to the cCJGridColumn object.
See SortGridByColumn for more about the grid's sorting capabilities and restrictions.
You will never send this message and will probably never augment it. If you create a custom datasource class, this interface must be supported.