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?
 
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
 
Ephraim WangoyaCommented:
here are the files
Unit1.dfm
Unit1.pas
0
 
John86aAuthor Commented:
Yeap, exactly what was missing, thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.