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 refresh data after dataset edit

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
pcerdaz
Guest





PostPosted: Thu Nov 02, 2006 10:13 pm    Post subject: How to refresh data after dataset edit Reply with 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
pcerdaz
Guest





PostPosted: Fri Nov 03, 2006 5:53 am    Post subject: Re: How to refresh data after dataset edit Reply with 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



"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





PostPosted: Fri Nov 03, 2006 6:25 am    Post subject: Re: How to refresh data after dataset edit Reply with 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...
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





PostPosted: Fri Nov 03, 2006 11:08 pm    Post subject: Re: How to refresh data after dataset edit Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) 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.