General information
Category:
Forms & Form designer
I like to make my forms usable without the mouse, so I put something like this in the KeyPress method of the form:
IF nKeyCode=13 AND ThisForm.ActiveControl.Name=[Grid]
ThisForm.EditRecord()
ENDIF
...which allows the user to hit enter to edit the currently selected record.
>I have created a quite a few apps now that use a grid for data entry purposes and I am fairly pleased with them.
>
>However it took a long time to get the desired effect so I have decided to use grids mainly for selecting items which are then edited using a form. I often use mutiple grids on a form so I have to get this right.
>
>Now I have to choose the neatest way of launching the editing form.
>
>I could have a button showing on the current row but that will use up an entire column just for that button. (however this is my favourite idea)
>
>I could have the button outside the grid but the label on it would have to be bigger to make it clear that it was a grid item that the button applied to (and I end up with yet another button using up space on the main form).
>
>A button for adding items will also have to go somewhere outside the grid or be assigned to a function key (this is a pity).
>
>What is the neatest solution to this problem you have seen?
>All ideas gratefully recived:)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only