>I am building a customer lookup grid in VFP8 that includes a hidden column that contains the customer's PK. I want the grid double-click event to return the PK of the selected row to the calling program.
>
>I am trying to use the grid's Valid event to store the PK but have had no success with this technique.
>
>Thanks,
>Tom Hall
Assuming you've got some kind of cursor acting as the RecordSource for the grid, there's no need for a hidden column to hold the PK, and no need to store the PK somewhere in the grid. The record pointer of the cursor will move with the grid pointer, and you can just pull the PK from the current record of whatever the RecordSource is.