Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Command Change Caption

Status
Not open for further replies.

jmcd0719

Programmer
Jun 13, 2001
37
US
I have a grid with a command button in one of the columns. If the record is deleted() I want the caption to read Recall and if not delete() then Delete.

Unfortunately the command button shows the same caption across all records.

Is this possible. Judging by previous posts with checkbox's caption in the grid this is not possible.

Thanks
 

You should have two command buttons (with different captions) as a possible currentcontrol, and in the init of you grid evaluate which commandbutton should be used as there currentcontrol with the dynamiccurrentcontrol. If you put it in the init of the grid it will evaluate each record one at a time. Take a look at faq184-2324 for a similar type of function (This one alternates between disabled and enabled )





Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top