Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which record is selected in a grid?
Message
From
22/08/2004 12:44:06
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, United States
 
 
To
22/08/2004 12:37:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00935327
Message ID:
00935335
Views:
22
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform