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 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.

 

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 of instantiating struct types.