Database & SQL

Moderators: None (Apply to moderate this forum)
Number of threads: 1194
Number of posts: 2247

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Refresh with ADODC Posted by Fionna on 5 May 2003 at 1:58 PM
I'm trying to refresh a Datagrid object connected with ADODC with a connectionstring.

The problem is that for each change I make in the Datagrid I have to call the Timer object with an interval of 500 miliseconds, otherwise, the changes disappear from the Datagrid.

What am I doing wrong?

Thanks.
Report
Re: Refresh with ADODC Posted by infidel on 6 May 2003 at 7:14 AM
: I'm trying to refresh a Datagrid object connected with ADODC with a connectionstring.
:
: The problem is that for each change I make in the Datagrid I have to call the Timer object with an interval of 500 miliseconds, otherwise, the changes disappear from the Datagrid.
:
: What am I doing wrong?

I'm not sure, but I think you have to call .Update or something on the grid to send your changes to the database? I know that ADO does a lot of magic behind the scenes so that may not be the problem, but it sounds like the refresh is requerying the database and populating the grid with your pre-change data.


infidel

Report
Re: Refresh with ADODC Posted by Fionna on 6 May 2003 at 2:24 PM
Thanks for your replay infidel, I'll try and see if your right.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.