BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make persistent a change

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Franco Jommi
Guest





PostPosted: Sun Feb 15, 2004 1:04 pm    Post subject: How to make persistent a change Reply with quote



If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the "Modified"
property remains false. Is this the normal behaviour and is there a way to
force the change to become persistent ?


Back to top
Dragon Lord
Guest





PostPosted: Mon Feb 16, 2004 8:55 am    Post subject: Re: How to make persistent a change Reply with quote



That sounds like normal behavior. It wouldn't be very practical to have to
it change on every key press. Although, I think there is a way to force it
to.

Jeremy

"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote

Quote:
If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified"
property remains false. Is this the normal behaviour and is there a way to
force the change to become persistent ?





Back to top
Maarten Wiltink
Guest





PostPosted: Mon Feb 16, 2004 7:59 pm    Post subject: Re: How to make persistent a change Reply with quote



"Dragon Lord" <invalid (AT) joke (DOT) com> wrote

Quote:
"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote in message
news:k7KXb.316897$_P.10946486 (AT) news4 (DOT) tin.it...

If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified" property remains false. Is this the normal behaviour and
is there a way to force the change to become persistent ?

That sounds like normal behavior. It wouldn't be very practical to
have to it change on every key press. Although, I think there is a
way to force it to.

Ctrl-Enter perhaps?

Groetjes,
Maarten Wiltink



Back to top
pr
Guest





PostPosted: Mon Feb 16, 2004 8:40 pm    Post subject: Re: How to make persistent a change Reply with quote


"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote

Quote:
If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified"
property remains false. Is this the normal behaviour and is there a way to
force the change to become persistent ?

What you wamt to do is non-sensical. Assume you
enter a 1, is this 1 or the 1 of 100 or 1000000? How
is the program supposed to know when you have
completed the entry for a particular column?

PR






Back to top
Franco Jommi
Guest





PostPosted: Tue Feb 17, 2004 2:42 pm    Post subject: Re: How to make persistent a change Reply with quote

But let'say I entered 100. If my cursor is still on that column and I clic a
button outside the DBGrid, I need to realize that a change was made (or was
being made). What I was trying to do was to test for the modified property
to check, but did not work. WHen the change gets taken then ?

"pr" <shin (AT) netactive (DOT) co.za> ha scritto nel messaggio
news:403196b8.0 (AT) news1 (DOT) mweb.co.za...
Quote:

"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote in message
news:k7KXb.316897$_P.10946486 (AT) news4 (DOT) tin.it...
If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified"
property remains false. Is this the normal behaviour and is there a way
to
force the change to become persistent ?

What you wamt to do is non-sensical. Assume you
enter a 1, is this 1 or the 1 of 100 or 1000000? How
is the program supposed to know when you have
completed the entry for a particular column?

PR








Back to top
Franco Jommi
Guest





PostPosted: Tue Feb 17, 2004 2:47 pm    Post subject: Re: How to make persistent a change Reply with quote

I am not saying every key press, but when I finish entering my value, how
does the system know I am finished ?
In my case, I realized this behaviour since I can clic on an exit button,
where the Modified property was checked to advice on pending changes, but
this does not seem to be true, unless I move the cursor to another record to
another column, which is something the use should know...

"Dragon Lord" <invalid (AT) joke (DOT) com> ha scritto nel messaggio
news:10311cpq9dv651e (AT) corp (DOT) supernews.com...
Quote:
That sounds like normal behavior. It wouldn't be very practical to have
to
it change on every key press. Although, I think there is a way to force
it
to.

Jeremy

"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote in message
news:k7KXb.316897$_P.10946486 (AT) news4 (DOT) tin.it...
If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified"
property remains false. Is this the normal behaviour and is there a way
to
force the change to become persistent ?







Back to top
pr
Guest





PostPosted: Tue Feb 17, 2004 6:52 pm    Post subject: Re: How to make persistent a change Reply with quote


"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote

Quote:
But let'say I entered 100. If my cursor is still on that column and I clic
a
button outside the DBGrid, I need to realize that a change was made (or
was
being made). What I was trying to do was to test for the modified property
to check, but did not work. WHen the change gets taken then ?

If click a button outside the grid then it your progams
responsibility to take appropriate action. You could e.g.
test for the Dataset.Edit not being in browse mode.

PR

Quote:
"pr" <shin (AT) netactive (DOT) co.za> ha scritto nel messaggio
news:403196b8.0 (AT) news1 (DOT) mweb.co.za...

"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote in message
news:k7KXb.316897$_P.10946486 (AT) news4 (DOT) tin.it...
If I change the value of a DBGrid Column, the change does not become
persistent unless I move the cursor outside the column; also the
"Modified"
property remains false. Is this the normal behaviour and is there a
way
to
force the change to become persistent ?

What you wamt to do is non-sensical. Assume you
enter a 1, is this 1 or the 1 of 100 or 1000000? How
is the program supposed to know when you have
completed the entry for a particular column?

PR










Back to top
Maarten Wiltink
Guest





PostPosted: Wed Feb 18, 2004 6:42 am    Post subject: Re: How to make persistent a change Reply with quote

"Franco Jommi" <franco.jommmi (AT) tin (DOT) it> wrote


Quote:
But let'say I entered 100. If my cursor is still on that column and I
clic a button outside the DBGrid, I need to realize that a change was
made (or was being made). What I was trying to do was to test for the
modified property to check, but did not work. WHen the change gets
taken then ?

When the focus leaves the current cell. Either to go to another cell, or
when it leaves the grid altogether. So you'd have to catch the events
TGrid.OnNavigate and TGrid.OnExit, or ones to that effect.

Groetjes,
Maarten Wiltink



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.