John J. Mihaljevic wrote: > Hi all, > > I created a grid class for the forms I'm designing with ReadOnly=.t.. When > I pop this grid into one of the tabs in the pageframe in my form, I look at > it's properties and see that ReadOnly is still .t.. But when I run the > form, I'm able to edit records in the grid. If I put > "this.mygrid1.ReadOnly=.t." in the tab's Activate property, the grid becomes > read-only. > > Why is the read-only aspect of this grid going away when I run the form? > I've got no code in there that changes it to ReadOnly=.f.. > > Thanks very much, > > John >
Hi John! This happens if you add columns after you've set the grid's ReadOnly property. Easiest thing to do: Reset the ReadOnly property (right-click it in the Properties dialog box and select Reset To Default) and then set it to .T. This will cascade the .T. to all columns in the grid (rather than you having to visit each individual column). hth! --Michael -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

