Column_Combo_ListRowCount - DfBaseFormList
Determines maximum number of rows in the combo's dropdown list that are displayed.
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Parameters
| Parameter | Type | Description |
|---|---|---|
| iColumn | integer | The column number (0-based) |
Syntax
Property Integer Column_Combo_ListRowCount
| Access Type | Syntax |
|---|---|
| Read Access: | Get Column_Combo_ListRowCount to IntegerVariable |
| Write Access: | Set Column_Combo_ListRowCount to IntegerVariable/Value |
Description
Determines the maximum number of rows in the combo form's dropdown list that are displayed. When exceeded, a scroll bar appears.
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 and adds 8 items to the dropdown list. It also instructs the grid to only display 5 items in the combo form's dropdown list and scroll to display additional items. So, when the user first clicks on the combo form's arrow to display the dropdown list, "Type 1", "Type 2", "Type 3", Type 4" and "Type 5" will be displayed. To view the other items on the list, the user will have to scroll down.
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
// set the number of displayed rows in dropdown list before scrolling
set Column_Combo_ListRowCount 2 to 5
// add items to the dropdown list for the combo in column 2
Send Column_Combo_Add_Item 2 "Type 1"
Send Column_Combo_Add_Item 2 "Type 2"
Send Column_Combo_Add_Item 2 "Type 3"
Send Column_Combo_Add_Item 2 "Type 4"
Send Column_Combo_Add_Item 2 "Type 5"
Send Column_Combo_Add_Item 2 "Type 6"
Send Column_Combo_Add_Item 2 "Type 7"
Send Column_Combo_Add_Item 2 "Type 8"