See Also: Declaring Variables, Struct
tGridSortRules is a structured type used for some members of the cCJGridColumn and cDbCJGridColumn classes.
Struct tGridSortRules
Boolean bDescending
tGridSortColumnRules[] Rules
End_Struct
bDescending
Determines if the entire column should, by default, be sorted in descending or ascending order.
tGridSortColumnRules[]
Array of tGridSortColumnRules structs containing rules for sorting multi segments from your grid. Because this is an array, you can define multi-column sort rules.
The tGridSortColumnRules struct is defined as follows:
Struct tGridSortColumnRules
Integer iColumn
Integer eDataType
Boolean bDescending
End_Struct
iColumn
Represents the grids index order (piColumnId).
eDataType
the column's data type (peDataType)
bDescending
Determines if this segment should be ascending or descending.
Use cCJGridSortHandler.pkg
:
tGridSortRules {variableName}
To declare tGridSortRules variables, use the name of the type (tGridSortRules) followed by the variable name.
tGridSortRules MyGridSortRules
See struct variables for more details of instantiating struct types.