如何在Delphi 中使用 DevExpressVCL的 CxGrid与CxTreeList,编辑某列后计算另一列的值

如何在Delphi 中使用 DevExpressVCL的 CxGrid与CxTreeList,编辑某列后计算另一列的值:比如 输入 单价,数量,计算金额。

参考:

1、  输入 单价,数量,计算金额   http://www.360doc.com/content/13/1212/19/3827427_336665778.shtml

       重点是:设置Column 的属性值(Properties),响应事件:cxGridDbTableViewColumnPropertiesChange 

      获得列的值的方法是:cxGridDbTableView.Columns[X].EditValue

                 或者通过:GetColumnByFieldName(‘’).Index

 

2、delphi cxTreeList列关联checkbox的要点   :  http://blog.sina.com.cn/s/blog_48fb29010102w1pj.html

3、xTreeList关于properties的问题: https://bbs.csdn.net/topics/340007425

 

posted @ 2018-10-11 12:45  Hopesun  阅读(847)  评论(0编辑  收藏  举报