Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Cetin Basoz
 To: alan shulman
  Where is alan shulman?
 New York - United States
 alan shulman
Subject: RE: Read only column
Thread ID: 331400 Message ID: 331499 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Friday, December 30, 2011 2:30:09 PM         

> I have a grid in a form that has a number of columns that is variable. I want to make the last column in the grid read only. Lets say the number of columsn in the grid is the variable p. How would I do this?

local ix
with thisform.myGrid
  for ix = .ColumnCount to 1 step -1
      if .Columns( m.ix ).ColumnOrder = .ColumnCount
         .Columns( m.ix ).ReadOnly = .t.

Cetin Basoz

.Net has got better.Think about moving - check my blog:
My Blog
Blog (mirror) - sounds to be down

Support Wikipedia


Read only column Posted by alan shulman @ 12/29/2011 5:21:46 PM
RE: Read only column Posted by Mike Gagnon @ 12/29/2011 5:33:39 PM
RE: Read only column Posted by Jun Tangunan @ 12/29/2011 10:58:26 PM
RE: Read only column Posted by Cetin Basoz @ 12/30/2011 2:30:09 PM