Column_Combo_Fill_List - dbGrid
Called when the column combo form's dropdown list needs to be filled
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| iCol | Integer | The column number |
Syntax
Procedure Column_Combo_Fill_List Integer iCol
Description
Called when the column combo form's dropdown list needs to be filled. By default, it attempts to fill the list based on the data-dictionary. Therefore, when using DD code tables, you will not need to aumgent this message.
If you wish to fill a combo form with custom values, you may use this message. You will add items to the list by sending the Column_Combo_Add_Item message.
Sample
The following sample fills the 3rd column (column 2) with custom values.
Procedure Column_Combo_Fill_List integer iCol
// only override for column 2
if (iCol=2) begin
// delete all existing items from dropdown list
send Column_Combo_Delete_Data iCol
// add items to dropdown list
send Column_Combo_Add_Item iCol "A Description" "A"
send Column_Combo_Add_Item iCol "B Description" "B"
send Column_Combo_Add_Item iCol "C Description" "C"
send Column_Combo_Add_Item iCol "D Description" "D"
send Column_Combo_Add_Item iCol "E Description" "E"
end
else ;
forward send Column_Combo_Fill_List iCol
End_Procedure // Column_Combo_Fill_List