Skip to content

Column_Combo_Sort_State - DfBaseFormList

Determines if a column should display dropdown list in sorted order

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Parameters

Parameter Type Description
iColumn integer The column number (O-based)

Syntax

Property Boolean Column_Combo_Sort_State
Access Type Syntax
Read Access: Get Column_Combo_Sort_State to BooleanVariable
Write Access: Set Column_Combo_Sort_State to BooleanVariable/Value

Description

Determines if iColumn should display the combo form's dropdown list in sorted order. Only the visual list is sorted. The actual list of column-items that (added via column_combo_add_item) are not sorted.

Sample

This sample instructs the grid to display the combo's dropdown list for column 2 in sorted order.

set Column_Combo_Sort_State 2 to True

Sample

This sample fills a grid with 20 rows of 3 columns each. It then instructs the grid to make column 2 a combo form, to sort the combo form's dropdown list, and adds 3 items to the dropdown list.

Procedure DoFillGrid
    integer iRow iMaxRows iCount
    string sCustomerName

    move "John Q. Customer" to sCustomerName

    move 20 To iMaxRows
    For iRow From 1 To iMaxRows
        Send Add_Item Msg_None (sCustomerName + string (iRow)))
        Send Add_Item Msg_None ("305-555-1212")
        Send Add_Item Msg_None (if(mod(iCount,2)=0,"Type 1","Type 2"))
        increment iCount
    Loop
End_Procedure // DoFillGrid

send DoFillGrid

// make column 2 a combo
set Column_Combo_State 2 to True
// sort the dropdown list for the combo in column 2
set Column_Combo_Sort_State 2 to True
// add items to the dropdown list for the combo in column 2
Send Column_Combo_Add_Item 2 "Type 3"
Send Column_Combo_Add_Item 2 "Type 2"
Send Column_Combo_Add_Item 2 "Type 1"

Default is false