Christopher,
Here is what I do in grids. In the grid's Inti:
FOR EACH locolumn IN this.Columns
FOR EACH loControl IN loColumn.controls
IF locontrol.name == locolumn.currentcontrol
IF PEMSTATUS(locontrol,"dblclick",5)
BINDEVENT(locontrol,"dblclick",thisform,"yourFormMethod",1)
ENDIF
ENDIF
NEXT
NEXT
In the yourFormMethod:
LOCAL laEvent[1]
AEVENTS(laEvent,0)
IF VARTYPE(laEvent[1]) = "O"
loEvent=laEvent[1]
DO case
CASE loEvent.name = "whatever"
OTHERWISE
ENDCASE
ENDIF
>Perhaps someone can tell me the best way to do this....
>
>I have a grid that is presented to end users. The grid itself does not contain data that the end user can or should edit. One of the columns in the grid displays an icon depending on the value of a field in the table that it displays.
>
>Currently, the grid is set up so that highlighting a row does not select a single cell within the grid. When the row is double clicked, a form that contains a pagefram opens up for enduser input. Currently, it doesn't matter where one doucble clicks in the row, the same form opens up with row specific data to be edited. I'd like to fix it up so that if the enduser specifically double clicks on the icon in the particular column, that the form opens up, but goes directly to a different page in the pageframe. I still want the grid row to be uneditable, and for the cells in the grid to be unselectable individually (act like a list box, and highlight the whole row).
>
>Thoughts?
>
>C