Page 1 of 1

TDBTreee Synchronising Tables

Posted: Thu Jun 28, 2007 12:10 pm
by 9243846
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

Posted: Thu Jun 28, 2007 2:23 pm
by narcis
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.

Posted: Fri Jun 29, 2007 9:25 am
by 9243846
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

Posted: Mon Jul 02, 2007 8:03 pm
by Tom
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.

Posted: Tue Jul 03, 2007 9:56 am
by 9243846
Thanks very much.

That works well.

Best Wishes

Tony Hunt