Kbase P162620: How do I add data to an UltraComboEditor control?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/26/2010 |
|
Status: Unverified
GOAL:
How do I add data to an UltraComboEditor control?
GOAL:
How do I add data to the drop down list of an UltraComboEditor?
FACT(s) (Environment):
OpenEdge 10.2B
Windows
FIX:
The following code provides an example of how to add data to the drop down list of an UltraComboEditor control:
define variable vItem as Infragistics.Win.ValueListItem.
for each SalesRep no-lock:
vItem = new Infragistics.Win.ValueListItem().
vItem:DataValue = SalesRep.SalesRep. /* actual value */
vItem:DisplayText = SalesRep.RepName. /* what user sees in the drop down list */
ultraComboEditor1:Items:Add(vItem).
end.