码迷,mamicode.com
首页 > 其他好文 > 详细

Devexpress-GridControl实现对两列求和后作为新的列

时间:2015-04-19 15:49:34      阅读:537      评论:0      收藏:0      [点我收藏+]

标签:

效果:

 技术分享

数据源提供id、quantity1、quantity2三个字段,sum为quantity1+quantity2.

步骤:

1.打开gridcontrol的设计器

技术分享

2.设置sum列的UnboundExpression属性

技术分享

3.设置quantity1+quantity2

技术分享

4.设置sum列的UnboundType属性为Integer

技术分享

OK,大功告成!!!

 

Devexpress-GridControl实现对两列求和后作为新的列

标签:

原文地址:http://www.cnblogs.com/zhangqibao/p/4439124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!