Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: Make some specific rows Readonly in Grid
Thread ID: 104509 Message ID: 104726 # Views: 2 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Saturday, August 19, 2006 9:08:24 PM         
   


> > 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
>
>



Hi,
I am confused here. Tariq asked to make a row read only, but the
code example is for columns?
Pete from the Great White North. (Only in Canada, ay.) Over and Out ...

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