How to update DbCtrlGrid on mysql database change?

Posted on 2004-08-25
Medium Priority
Last Modified: 2010-04-05
How to update DbCtrlGrid on mysql database change?
Database is on server and i want:
if database on server something change
form on my computer maximizes
How to do it?
Question by:selas
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 27

Expert Comment

ID: 11891532
i guess you have to poll in a defined intervall for changes

Author Comment

ID: 11892153
you mean timer?
LVL 27

Expert Comment

ID: 11892240
>you mean timer?

maybe additional things must be done,
depending on the complexity of your database-design
-> means, if you have to monitor many tables,
you could define a trigger for each table,
which updates or insert a row into one table,
which you could then easily poll

meikl ;-)
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 11892282
i added timer, but i don't know how to catch dbctrlgrid change
if something changed i need to maximize...
LVL 27

Accepted Solution

kretzschmar earned 2000 total points
ID: 11892552
well, of course,
the database does not tell you that something has changed.

you have to build some kind of logic, where you can detect
a change, but how depends on your compare-values you have,
where you could lookup (query).

tell a bit more

meikl ;-)
LVL 12

Expert Comment

ID: 11892606
you can use one more table in the DB. Let's say DB_CHANGES


and you work with MY_TABLE.
write a trigger for MY_TABLE for AFTER insert, delete, update. When such event occur, you write in DB_CHANGES table.
and OnTimer you should execute this SQL:


then check if the DataSet is empty, and update this back to IS_CHANGED = 0. If the table MY_TABLE is changed, you can refresh the bigger DataSet attached to the DBGrid...

Author Comment

ID: 11892868
i added Dbctrlgrid1.PanelCount

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question