 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
pcerdaz Guest
|
Posted: Thu Nov 02, 2006 10:13 pm Post subject: How to refresh data after dataset edit |
|
|
Hello,
Someone could help me about why data showed through a grid is
not actualized after it were changed on the dataset?
I tried using Refresh() over a Dataset and Repaint() over a
Grid but it doesn't work.
Only when I do a mouse click over the refresh icon on the navigator the data is actualized as expected to.
Thanks,
pcerdaz |
|
| Back to top |
|
 |
pcerdaz Guest
|
Posted: Fri Nov 03, 2006 5:53 am Post subject: Re: How to refresh data after dataset edit |
|
|
I'm using TTable. Something like this:
....
DMTEC->TablePagos->Edit();
DMTEC->TablePagos->FieldByName("Estado")->AsBoolean = True;
DMTEC->TablePagos->Post();
DMTEC->TablePagos->Refresh();
....
But the Grid that show registers from TablePagos doesn't
change "Estado" until I do a click over navigators refresh
icon.
Regards,
pcerdaz
"Jayme Jeffman" <nospan (AT) jeffman (DOT) eng.br> wrote:
| Quote: | Hello,
What kind of Dataset are you using ? TQuery ? TTable ? Other ?
Jayme.
"pcerdaz" <pcerdaz (AT) manquehue (DOT) net> escreveu na mensagem
news:454a2747$1 (AT) newsgroups (DOT) borland.com...
Hello,
Someone could help me about why data showed through a grid is
not actualized after it were changed on the dataset?
I tried using Refresh() over a Dataset and Repaint() over a
Grid but it doesn't work.
Only when I do a mouse click over the refresh icon on the navigator the
data is actualized as expected to.
Thanks,
pcerdaz
|
|
|
| Back to top |
|
 |
Jayme Jeffman Guest
|
Posted: Fri Nov 03, 2006 6:25 am Post subject: Re: How to refresh data after dataset edit |
|
|
Hello,
What kind of Dataset are you using ? TQuery ? TTable ? Other ?
Jayme.
"pcerdaz" <pcerdaz (AT) manquehue (DOT) net> escreveu na mensagem
news:454a2747$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
Hello,
Someone could help me about why data showed through a grid is
not actualized after it were changed on the dataset?
I tried using Refresh() over a Dataset and Repaint() over a
Grid but it doesn't work.
Only when I do a mouse click over the refresh icon on the navigator the
data is actualized as expected to.
Thanks,
pcerdaz |
|
|
| Back to top |
|
 |
Jayme Jeffman Guest
|
Posted: Fri Nov 03, 2006 11:08 pm Post subject: Re: How to refresh data after dataset edit |
|
|
Hello,
Make sure the Grid->DataSource-DataSet is "TablePagos" . Otherwise you
should perform a click on the Navigator Refresh button. Remember that, as
far as I know, there is no any database that fires an event telling that it
was updated to the the plugged Datasets. Did you understand ?
HTH
Regards.
Jayme.
"pcerdaz" <pcerdaz (AT) manquehue (DOT) net> escreveu na mensagem
news:454a9313$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
I'm using TTable. Something like this:
...
DMTEC->TablePagos->Edit();
DMTEC->TablePagos->FieldByName("Estado")->AsBoolean = True;
DMTEC->TablePagos->Post();
DMTEC->TablePagos->Refresh();
...
But the Grid that show registers from TablePagos doesn't
change "Estado" until I do a click over navigators refresh
icon.
Regards,
pcerdaz
|
|
|
| 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
|
|