Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids without a data source
Message
From
22/03/2004 09:25:20
 
 
To
22/03/2004 08:47:11
Paul Trimming
Lonely Pilgrim Shareware
Merstham, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00888489
Message ID:
00888502
Views:
10
Paul

You can have your grid with the target table as its DataSource but set the table's "buffering" so that updates don't take place till you commit them.

In the form's Data Environment (DE), set the table's BufferModeOverride to the value you wish (2-5) depending on whether you'll be committing several recs at one go or not (see "Buffering Data" et al in Help).

You use TableUpdate() or TableRevert() to commit or cancel your changes (say in the click event of save and undo buttons), along with Transaction processing if you wish (see "Begin Transaction").

Alternatively you could have a xaction table to take your grid additions/amendments and write them to your main table on save. You can have the table set up as per Cetin's code or do it visually with the grid builder, or through its properties.

HTH

Terry

>I am a new foxpro programmer working with a grid.
>
>I want to use a grid without a data source to collect information, and then, if it stacks up, save some of it to a table.
>
>However, when I run my grid, it seems to be read-only, that is, I can't enter anything in it. Is this normal for grids without record-source or control-source? If so, what is the normal way of collecting non-databound info???
>
>Thanks,
>Trimtrom
- 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
Reply
Map
View

Click here to load this message in the networking platform