TcxDBTreeList (DevExpress Quantum Tree List) - How to load data from a database into it?

Hi,
1) I set up a data source
2) ado connection to mssql database
3) ado query performing the query
4) tested it on a common DBGrid, everything went OK. Data shows up.

However, when I try to set it up on a TcxDBTreeList, simply doesn't work.
I set the properties Databinding to the datasource, the cxdbtreelist loads up all columns but doesn't load data, and I don't understand why not.

How can I make it load the data ?

Thanks.
John86aAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ephraim WangoyaCommented:
You have to set the KeyField and the ParentField for the data to show

Here is an example using AdventorWorks
TcxDBTreeList.PNG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ephraim WangoyaCommented:
here are the files
Unit1.dfm
Unit1.pas
0
John86aAuthor Commented:
Yeap, exactly what was missing, thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.