Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Captions on Command buttons in grid
Message
From
10/05/2005 03:33:42
 
 
To
10/05/2005 03:24:05
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01012363
Message ID:
01012365
Views:
22
Change the value of yourgrid.sparse

>I'm putting a command button into the controlsource of a grid column. The caption of the button is populated based on a table. The buttons should have different captions based on each record of the table.
>However, currently it is showing the same caption for all the buttons.
>I've also tried to put in codes in the grid's afterrowcolchange event to refresh the captions of each line with sparse property set to .f.. Upon starting the screen, the captions on the button will all show the description of the first record. However, as I scroll down the list, the buttons then show the correct caption.
>If I click on one of the buttons to move to another screen and back, the captions on all rows show the description of the record that I was last at.
>How do I show the correct caption for each record?
>Thanks in advance.
>Yau
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform