Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: Khozema Adenwala
  Where is Khozema Adenwala?
 sanaa
 Yemen
 Khozema Adenwala
 Tags
Subject: RE: Auto Enable / Diable command button in grid
Thread ID: 50831 Message ID: 50962 # Views: 34 # Ratings: 0
Version: Visual FoxPro 7 Category: Grids
Date: Tuesday, September 07, 2004 1:23:41 PM         
   


Hi Khozema

> I have added two controls to a column in the grid and set the timer code as below
>
> This.Parent.grdTemp_billing.clmlogin.CurrentControl = ;
> IIF(This.Parent.grdTemp_billing.clmstatus.text1.value="R","cmdlogin","cmdlogind")
>
> where cmdlogin should be vsisble if status is "R" and cmdlogind should be visible
> if status is not R but nothing seems to happening .

> have I added the code in the wrong place

Yes you have. As I said

>> check out the DynamicCurrentControl property of the grid column.

This has nothing to do with the timer (you don't need it anyway) and MUST be set in the Grid.

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Akron, OH, USA

ENTIRE THREAD

Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/6/2004 1:07:03 PM
RE: Auto Enable / Diable command button in grid Posted by Andy Kramek @ 9/6/2004 1:13:36 PM
RE: Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/7/2004 10:43:33 AM
RE: Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/7/2004 11:24:07 AM
RE: Auto Enable / Diable command button in grid Posted by Andy Kramek @ 9/7/2004 1:23:41 PM
RE: Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/8/2004 1:11:36 PM
RE: Auto Enable / Diable command button in grid Posted by Andy Kramek @ 9/8/2004 2:17:01 PM
RE: Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/11/2004 7:53:41 AM
RE: Auto Enable / Diable command button in grid Posted by Andy Kramek @ 9/11/2004 1:38:12 PM
RE: Auto Enable / Diable command button in grid Posted by khozema adenwala @ 9/11/2004 9:54:14 PM
RE: Auto Enable / Diable command button in grid Posted by Andy Kramek @ 9/12/2004 3:44:27 PM
RE: Help needed From Andy Posted by khozema adenwala @ 9/13/2004 8:34:15 AM
RE: Help needed From Andy Posted by Andy Kramek @ 9/13/2004 1:14:10 PM
RE: Auto Enable / Diable command button in grid Posted by John Barrie @ 6/1/2017 2:30:47 PM
RE: Auto Enable / Diable command button in grid Posted by Catalin Banici @ 5/12/2006 2:10:54 PM