General information
Category:
Forms & Form designer
Title:
Newbie - can't edit recs in grid (The record is read-only.)
Environment versions
Network:
Windows 2003 Server
Please bear with a VFP (ver 6) newbie :) I have many years of FoxPro 2.x Win/DOS experience, but VFP is new to me.
I have a FPW 2.6 project that I converted to VFP6 (using VFP conversion tool). On one form I added a grid object, defining all the columns, their sources etc. None of the grid columns have their Read-Only property set. The grid's RecordSourceType is Alias, the RecordSource is the name of a table used in this form. Yet when I run the program the grid will not allow any editing. If I try typing into any of the text boxes, a message appears on status line "The record is read-only."
The tables are all free type tables from FPW 2.6. If I add a Browse command in the grid object's INIT event, the expected table appears and I can edit fields. Interestingly though, when I exit the browse and enter the grid - any changes I had made in the browse do not appear in the grid.
I'm guessing that the grid is using a cursor rather than the actual table? In 2.x cursors are always read-only. If this is my problem, how do I make the grid NOT read-only? Do I change the buffering mode?
TIA,
-Mike
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only