Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2003, 03:20 PM
SirCer SirCer is offline
Senior Member
 
Join Date: May 2002
Posts: 149
Default Problem updating DBGrid

Hi.

I'm doing the folowing sequence:

1) view data in a DBGrid
2) close the DataSet
3) Edit the table (somewhere else - not through the grid)
4) open the Dataset

The problem is that the Grid wont show any changes that were made to the table - until I scroll the grid.
I also couldn't find any events that would refresh the data - not in the grid or its datasource or dataset.
Repaint etc. are no use - they don't cause the data to be updated.

Appreciate any help!

SC
Reply With Quote
  #2  
Old 08-01-2003, 03:48 PM
johnjces johnjces is offline
Senior Member
 
Join Date: Oct 2001
Posts: 444
Default RE: Problem updating DBGrid

dbgrid1.refresh seems to do it for me!

If you are using SQL use an ADOQuery or Query component, do a...

Query1.Requery or ADOQuery1.Requery.

John Jarrett
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.