Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Marcia Akins
  Where is Marcia Akins?
 Akorn
 Ohio - United States
 Marcia Akins
 To: Labu Labi
  Where is Labu Labi?
 Negeri
 Malaysia
 Labu Labi
 Tags
Subject: RE: Disable certain rows in a grid
Thread ID: 104326 Message ID: 104365 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Grids
Date: Tuesday, August 15, 2006 4:24:52 PM         
   


I wonder if we can disable certain rows in a grid? Let's say I have a grid with 10 records (rows). How to disable certain rows based on their values, eg. disable any rows having odd numbers?

This code in the grid's AfterRowColChange():

IF INLIST( THIS.RowColChange, 1, 3 ) ;
  THIS.AllowCellSelection = ( MyRecordSource.SomeField = SomeValue )
ENDIF


Regards,
Marcia G. Akins
Tightline Computers, Inc.


ENTIRE THREAD

Disable certain rows in a grid Posted by Labu labi @ 8/15/2006 6:56:38 AM
RE: Disable certain rows in a grid Posted by Bernard Bout @ 8/15/2006 7:49:55 AM
RE: Disable certain rows in a grid Posted by Rey Magdalaga @ 8/15/2006 8:01:14 AM
RE: Disable certain rows in a grid Posted by Andy Kramek @ 8/15/2006 12:45:43 PM
RE: Disable certain rows in a grid Posted by Marcia Akins @ 8/15/2006 4:24:52 PM
RE: Disable certain rows in a grid Posted by Labu labi @ 8/16/2006 7:18:42 AM