It was not clear enough in my example.
Code:
Sub App_Start
...
EditableTable.SetEdit("Main.Table2","","Main.SetCombo")
End Sub
'column - Selected column
'combo - The combobox control that you should edit
'value - The value of the current selected cell
Sub SetCombo(column, combo, value)
Control(combo,ComboBox).Clear
Select column
Case "Days"
Control(combo,ComboBox).Add("Sunday")
Control(combo,ComboBox).Add("Monday")
Control(combo,ComboBox).Add("Tuesday")
Control(combo,ComboBox).Add("Wednesday")
Control(combo,ComboBox).Add("Thursday")
Control(combo,ComboBox).Add("Friday")
Control(combo,ComboBox).Add("Saturday")
Control(combo,ComboBox).SelectedIndex = 0
Return True
Case "IsRainy"
Control(combo,ComboBox).Add("True")
Control(combo,ComboBox).Add("False")
Control(combo,ComboBox).SelectedIndex = 0
Return True
Case Else
Return False
End Select
End Sub
First, when you call Editable.SetEdit, the third parameter should be the name of a sub that will handle the combobox and textbox.
Now in this sub (SetCombo in my example) we receive the column name and we decide if we want a textbox or a combobox.
If you want a combobox you should return true.
So we test the current selected column. If it is 'Days' or 'IsRainy' then we fill the combobox (that was passed as a parameter) with the values we need and return true.
Otherwise we return false.
Note that the names of the columns are case-sensitive.
I hope that it is more clear now.