Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which record is selected in a grid?
Message
De
22/08/2004 12:44:06
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
 
 
À
22/08/2004 12:37:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00935327
Message ID:
00935335
Vues:
23
Thanks for the response. I think I just figured it out.

The RecordSourceType was a 0. Once I changed it to a 1, it appears to work fine.

Thanks!

>Hi Randy.
>
>I have a grid bound to a table. I have cell selection disabled. When the user double clicks on a row, I want to know which record is selected. I am setting a textbox to tablename.fieldname in the double click event of the grid. This always returns the first record. I can't find any property for selected on the grid. What stupid mistake am I making???
>
>Referring to the data in the underlying RecordSource should work in the grid's dblClick() event. I have grid classes ( AllowCellSelection = .F. ) set up to launch an editing form from the grid's dblClick() and the form is always on the correct record. Can you post the code that you have in the grid's dblClick()? It is probably a typo.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform