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: 51375 # Views: 30 # Ratings: 0
Version: Visual FoxPro 7 Category: Grids
Date: Saturday, September 11, 2004 1:38:12 PM         
   


Hi Khozema

> I put the code in the init() of the grid . But it comes back to what happened before
> If the first record has clmstatus <> "R" all records show the cmdlogind buttons
> and not for the first record . If record no 3 say is not "R" and first record is "R"
> then all cmdlogin buttons are visible even for record 3

The only other thing I can suggest is that you are using the value in the textbox - try using the value in the FIELD instead.

So instead of:
IIF( This.column.text.value = "X"

Try using
IIF( table.field = "X"....


If this doesn't solve it, I don't know what else I can tell you.

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