General information
Category:
Coding, syntax & commands
Title:
Captions on Command buttons in grid
Environment versions
Network:
Windows 2000 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only