Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Kulwant Singh
  Where is Kulwant Singh?
 Shimla
 India
 Kulwant Singh
 To: Sandy Stephen
  Where is Sandy Stephen?
 Pune
 India
 Sandy Stephen
 Tags
Subject: RE: Caption of Command Button in Grid Row
Thread ID: 248872 Message ID: 248874 # Views: 12 # Ratings: 4
Version: Visual FoxPro 9 Category: Grids
Date: Thursday, December 24, 2009 6:04:57 AM         
   


> Dear All
>
> I have a grid, in that command button is placed in a column of each row. The data is showing from a cursor.
> I Want to show the grid serial as the caption of the command button.
> How can I do that? Please help....
>
> Regards
> Sandy

Suppose the command button is placed in Column1 of Grid1

In the properties window..
select Grid1..column1...DdynamicCurrentControl
type..
="thisform.getcaption()"


Add a new method to the form ..GetCaption
the method should be..
thisform.Grid1.Column1.Command1.caption = STR(RECNO())
RETURN 'command1'




kulwant
(Help Save the TIGER. Save Wildlife. Live & let Live)

ENTIRE THREAD

Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 5:33:27 AM
RE: Caption of Command Button in Grid Row Posted by kulwant singh @ 12/24/2009 6:04:57 AM
RE: Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 12:05:23 PM
RE: Caption of Command Button in Grid Row Posted by kulwant singh @ 12/24/2009 3:51:37 PM
RE: Caption of Command Button in Grid Row Posted by tushar @ 12/24/2009 6:04:45 AM
RE: Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 12:05:44 PM