Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo-box within grid, but allow choice to be edittable
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Combo-box within grid, but allow choice to be edittable
Divers
Thread ID:
00049370
Message ID:
00049370
Vues:
113
I have a data entry grid. From the grid, a user makes a selection
from a drop-down listbox (or combobox). In rare instances, the
user has to modify the selection. But, I don't want to update the
list/source of the list, to include the selection.

I tried modifying the grid to have a column with the dropdown, and
a second column to store the data, adjus tthe column widths, etc,
but I just couldn't get a look and feel consistent with the general
operation of a dropdown within a grid.

My solution was as follows: I added a command button in a column
of the grid. The icon in the command button is identical to that
of a drop-down list "down arrow". Then, I added a free floating
drop-down. When the user hits the command button, which looks like
the down arrow of a listbox inside the grid, the free floating
listbox is moved to the appropriate row on the grid, made visible,
and a keypress is programmed to drop the list. After a selection is
made, the listbox disappears and the value is stored in the
previously covered textbox within one of the grid's columns.


Is this a pretty decent implementation or are there more eloquent
techiniques?


Tom
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform