Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using forms to edit grid items. What's the neatest way?
Message
From
31/05/2002 20:05:20
 
 
To
28/05/2002 10:29:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00662010
Message ID:
00663744
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
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
Map
View

Click here to load this message in the networking platform