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.