Skip to content

tGridSortRules

See Also: Declaring Variables, Struct

Purpose

tGridSortRules is a structured type used for some members of the cCJGridColumn and cDbCJGridColumn classes.

Type Declaration

Struct tGridSortRules
    Boolean bDescending
    tGridSortColumnRules[] Rules
End_Struct

Struct Members

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 multiple 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 grid's index order (piColumnId).

eDataType

The column's data type (peDataType).

bDescending

Determines if this segment should be sorted in ascending or descending order.

Syntax

Use cCJGridSortHandler.pkg

tGridSortRules {variableName}

Declaring Variables

To declare tGridSortRules variables, use the name of the type (tGridSortRules) followed by the variable name.

tGridSortRules MyGridSortRules

See struct variables for more details on instantiating struct types.