Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
GOTO TOP in ComboBox
Versions des environnements
Network:
Windows 2003 Server
I have a combobox in a grid, Its loaded dynamically from an array.
The array has 3 columns, description,code and sort order.
After I load the array I use ASORT() to place the items in the desired order.
So far so good!
When the user adds a new line to the grid (IE. combobox has no selected value yet) Users want the combobox to display first item in the drop down. Currently it seems to go to the first item that was added to the array, even if that is now the last item, middle or whatever.
I've tried using ;
This.Value=THIS.aItems[1,2]
This.ItemIndex=1
This.ListItemId=1
Each causes a C00005 error !
Any ideas how I can achieve this?
Gary.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement