Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Borislav Borissov
  Where is Borislav Borissov?
 Borislav Borissov
 To: Nadir Khan
  Where is Nadir Khan?
 Nadir Khan
Subject: RE: Add Command Button
Thread ID: 310673 Message ID: 310676 # Views: 37 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Thursday, June 23, 2011 11:48:47 AM         

> Dear Experts
> I have a grid in my form i want add a command button in column 3
> how to add Programmatically
> plesae help me with a example
> thanks
> Nadir

Why programmatically?
thisform.Grid1.Column3.AddObject("Command1", "CommandButton")
thisform.Grid1.Column3.CurrentControl = "Command1"
thisform.Grid1.Column3.Command1.Visible = .t.
thisform.Grid1.Column3.Sparse = .f.

Borislav Borissov

Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.


Add Command Button Posted by Nadir Khan @ 6/23/2011 11:40:08 AM
RE: Add Command Button Posted by Borislav Borissov @ 6/23/2011 11:48:47 AM
RE: Add Command Button Posted by Stefan Wuebbe @ 6/23/2011 11:52:58 AM