General information
Category:
Forms & Form designer
>>I have a command button in a grid I want to change the caption based on row data.
>>I tried using DynamicCurrentControl to change the command button Caption using
>>=IIF(tableData = "xyz", 'cmd1', 'cmd2')
>>not working, what am I doing wrong?
>>
>>Thanks
>I think you need quotes around the IIF, like if you would place your code in the init of the column
>This.DynamicCurrentControl = "IIF(tableData = 'xyz','cmd1','cmd2')"
Still not doing it. I guess I am going with 2 buttons. thanks.
Previous
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