Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double-Clicking on a Read-Only Grid
Message
 
To
02/03/1999 08:12:12
Jocylyn Sy
Freelance Programmer
Cebu, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193078
Message ID:
00193082
Views:
17
You'll need to put the code in the dblclick methods of the textboxes in the grid. One way to do this is to make a textbox class for grids. Have its dblclick event call the grid's dblclick (e.g., THIS.Parent.Parent.DblClick()).

Set the grid's DeleteColumn property to .F. to prevent the delete box from showing.

>Good day,
>
>I was wondering if the double click method works on a
>read-only grid.
>
>What I basically wanted to do was have a grid showing
>items from the product file. Let the user double-click
>on an item which would close the form and store the picked
>item to the text control value opening the lookup form.
>
>I know I could do a combo list for this but the no. of the
>products could easily go beyond the 20,000 items.
>
>Another question...
>
>How do you disable/take out the column on the grid
>which enables the user to delete the item by pressing
>the column?
>
>Thank you in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform