>Hello all;
>Hope everyone is doing well.
>
>I have an issue with a grid, I placed a command button in one of the cells.
>depending on what the users choses I am changing the caption and the tooltip of the command button. When I change them (caption and tooltip) the changes are applied to all of the command buttons in all of the cells. What am i doing wrong?
>
>thank you in advance for any help or suggestions.
Jossue,
Check FAQ #7934
You could do something like this :
-Set dynamicbackcolor to a methd call (ie: thisform.buttonset() )
-In dynamicbackcolor set the caption etc. ie:
with ThisForm.myGrid.myColumn.myContainer.myCommandbutton
.Enabled = lSomeLogicalHere
.Caption = myAlias.myField
.TooltipText = 'Hello this is '+myAlias.SomeField
endwith
return this.backcolor
Cetin