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?
 Sofia
 Bulgaria
 Borislav Borissov
 To: Tariq Mehmood
  Where is Tariq Mehmood?
 BAHAWALPUR
 Pakistan
 Tariq Mehmood
 Tags
Subject: RE: Make some specific rows Readonly in Grid
Thread ID: 104509 Message ID: 104510 # Views: 2 # Ratings: 1
Version: Visual FoxPro 6 Category: Grids
Date: Thursday, August 17, 2006 10:56:36 AM         
   


> Dear Experts
>
> I use following command to apply Backolor of some specific rows in grid. This work fine
>
> thisform.grid1.SetAll('dynamicbackcolor','iif(master1.code%1000=0,RGB(255,235,200),RGB(255,255,255))','column')
>
> But how to make some specific rows Readonly in Grid while using command like above.
>
> Please help


*** AfterRowColChange event of the grid:
LOCAL lbReadOnly
lbReadOnly = (add condition here which makes columns ReadOnly)
this.SetAll([ReadOnly], m.lbReadOnly, [Column])

(not tested)


In VFP 9 you could use AllowCellSelection instead of SetAll()

Borislav Borissov



ENTIRE THREAD

Make some specific rows Readonly in Grid Posted by Tariq mehmood @ 8/17/2006 10:31:33 AM
RE: Make some specific rows Readonly in Grid Posted by Borislav Borissov @ 8/17/2006 10:56:36 AM
RE: Make some specific rows Readonly in Grid Posted by Pete Sass @ 8/19/2006 9:08:24 PM
RE: Make some specific rows Readonly in Grid Posted by Borislav Borissov @ 8/19/2006 11:47:31 PM
RE: Make some specific rows Readonly in Grid Posted by Marcia Akins @ 8/20/2006 2:00:29 PM