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