Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie - can't edit recs in grid (The record is read-onl
Message
From
26/10/2006 07:40:42
 
 
To
26/10/2006 01:16:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01164636
Message ID:
01164664
Views:
7
Mike

One consideration: How did you build the grid - with the Builder? And did you already have the grid's/form's main table in the DE. Sometimes, usimng builders (I seem to recall) another instance of the source table gets added to the form, and you'll find it in the DE.

Have you any buffering set up on the table, whereby you need to issue TableUpdate() to permanently save the changes?

After making changes to underlying data you usually need to refresh the grid.

UYou haven't INCLUDED the table in the project, have you? That would make it read-only.

Are you absolutely ceretain you've got the correct table in the grid, and not one that's got read-only DOD properties.

Some considerations for you that I hope might help

Terry

>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
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform