Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I access the text portion of a grid in code
Message
From
26/09/2002 08:58:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00704633
Message ID:
00704638
Views:
25
>I have grid which displays data. I want to be able to click in the grid and take the contents of where the the cursor is and assign it to a textbox.
>
>How do I reference the data in the position ("cell") where my cursor is?
>
>Regards,
>
>Stuart

I don't remember the details exactly, but let me try...

Grid.ActiveColumn contains the current column, as a number. You can then use this number for the .Columns collection, to get the active column. From this column, you can access the standard textbox Text1, or, to be safer, use Column.CurrentControl. From this CurrentControl, you can then get the .Value property.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform