Information générale
Titre:
Combo-box within grid, but allow choice to be edittable
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
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