select f.id,f.sn,f.dept,f.times,f.empl,f.depa_opinion,f.lead_opinion,f.buyer,
sum(a.Price_fact) as money  
from appl_form as f left join apply as a on
f.id = a.form_no
group by f.id,f.sn,f.dept,f.times,f.empl,f.depa_opinion,f.lead_opinion,f.buyerDataSet 的CommandText 如上
DataSousedxDBTreeList
dxDBGrid
他们同连接DataSet ,
dxDBGrid显示数据
dxDBTreeList什么都不显示.

解决方案 »

  1.   

    设置DataController里的keyField and ParentField
      

  2.   

    quicksand201(流沙) :
    再讲详细点啊
      

  3.   

    The DataController.KeyField and DataController.ParentField properties identify dataset fields used for building the tree structure.  Key field values uniquely identify dataset records (nodes, in the tree structure).  The parent field of a record contains the key field value for the record (node), which is the parent of the record (node) within the tree structure.  --------------------这是帮助里的,英文不好,我这里就不翻译了。