TDBTreee Synchronising Tables

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
TonyHunt
Newbie
Newbie
Posts: 15
Joined: Mon Jan 15, 2007 12:00 am

TDBTreee Synchronising Tables

Post by TonyHunt » Thu Jun 28, 2007 12:10 pm

Hi,

When I highlight an item in the DBtree, I would like to have the Table goto
the appropriate record.

How do I achieve this?

If there is an example I have not spotted, I apologise, please just tell me
the filename.

Best Wishes

Tony Hunt

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 28, 2007 2:23 pm

Hi Tony,

To refresh the DBChart you have to do it in a similar way as in the example you can find at the features demo project under:
All Features -> Welcome ! -> DataBase Charts -> Single Record. You'll find the demo at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

TonyHunt
Newbie
Newbie
Posts: 15
Joined: Mon Jan 15, 2007 12:00 am

Post by TonyHunt » Fri Jun 29, 2007 9:25 am

Hi Narcis,

Thank you for the quick response. I am indeed using the AfterAdd event in Charts as in the excellent samples.

Regrettably it is not the Charts I am having problems with but the TDBTree object.

Is there an AfterAdd event for the TDBTree or a similar way to acheive the same result?

Best Wishes.

Tony Hunt

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Mon Jul 02, 2007 8:03 pm

Hi,

This is not directly supported in TDBTree, but you can easily get this functionality by using the Data property of a node. Attach to this property a record or an object which contains the key information. When you click on the node, you use that key information for looking up the right record in your table.

Regards,
Tom.

TonyHunt
Newbie
Newbie
Posts: 15
Joined: Mon Jan 15, 2007 12:00 am

Post by TonyHunt » Tue Jul 03, 2007 9:56 am

Thanks very much.

That works well.

Best Wishes

Tony Hunt

Post Reply