 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Franco Jommi Guest
|
Posted: Sun Feb 15, 2004 1:04 pm Post subject: How to make persistent a change |
|
|
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
|
Posted: Mon Feb 16, 2004 8:55 am Post subject: Re: How to make persistent a change |
|
|
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
|
Posted: Mon Feb 16, 2004 7:59 pm Post subject: Re: How to make persistent a change |
|
|
"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
|
Posted: Mon Feb 16, 2004 8:40 pm Post subject: Re: How to make persistent a change |
|
|
"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
|
Posted: Tue Feb 17, 2004 2:42 pm Post subject: Re: How to make persistent a change |
|
|
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
|
Posted: Tue Feb 17, 2004 2:47 pm Post subject: Re: How to make persistent a change |
|
|
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
|
Posted: Tue Feb 17, 2004 6:52 pm Post subject: Re: How to make persistent a change |
|
|
"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
|
Posted: Wed Feb 18, 2004 6:42 am Post subject: Re: How to make persistent a change |
|
|
"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 |
|
 |
|
|
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
|
|