|Subject||Re: how to call 'commit' after you exit the cell being edited?|
--- In email@example.com, Mark Rotteveel <mark@...> wrote:
>can it be done in the object inspector? or will i need to put a code? either way what do you mean the reader and writer needs to commit? you mean i need to commit on both application?
> On Fri, 19 Apr 2013 15:44:57 -0000, "dice_in_trouble"
> <dice_in_trouble@...> wrote:
> > i had this experience earlier in which i need to close the app for the
> > grid to update even
> > i have these components:
> > 1 zconnection
> > 1 ztable
> > 1 datasource
> > 1 dbgrid
> > 1 navigation bar
> > if i press refresh on the nav bar, the entry on the other computer wont
> > appear. i would like the dbgrid to update when i click the refresh
> > whenever someone edit it's contents.
> > i also think that the database might "overlap" the entries from 2 or
> > users.
> > some users say i need to call commit, how do i do that and do i need to
> > put it on every db grid i have on the application?
> > btw i am using delphi 7 and zeoslib 7.0.3
> I have never used Zeoslib, but the ZConnection has a Commit method. Be
> aware though that the writer needs to commit, but also the reader
> (otherwise the reader will not see the updates!)