惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Last Week in AI
Last Week in AI
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
博客园 - 叶小钗
NISL@THU
NISL@THU
C
Check Point Blog
K
Kaspersky official blog
N
News and Events Feed by Topic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
T
Threatpost
GbyAI
GbyAI
L
LINUX DO - 热门话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Scott Helme
Scott Helme
P
Privacy International News Feed
The Register - Security
The Register - Security
G
GRAHAM CLULEY
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
DataBreaches.Net
J
Java Code Geeks
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
Google DeepMind News
Google DeepMind News

博客园 - 木人(我现在不是老大)

ERP系统的专业化发展趋势 讨厌的real和float数据 Svcutil使用点滴 windows server2003企业版64位安装sql server2008企业版64位 读书笔记 UltraGrid(16) 水晶报表使用push模式(2) 水晶报表使用push模式(1) SQL SERVER2000存储过程调试 读书笔记 UltraGrid(15) 读书笔记 UltraGrid(14) 读书笔记 UltraGrid(11) 读书笔记 UltraGrid(10) 读书笔记 UltraGrid(9) 读书笔记 UltraGrid(8) 读书笔记 UltraGrid(7) 读书笔记 UltraGrid(6) 读书笔记 UltraGrid(5) 读书笔记 UltraGrid(4) 读书笔记 UltraGrid(3)
读书笔记 UltraGrid(12)
木人(我现在不是老大) · 2012-02-13 · via 博客园 - 木人(我现在不是老大)

呈现数据
1.使用未绑定列
可通过UltraGridBand中的Columns来增加column。
限制条件:必须有一个绑定的列!
2.通常未绑定列是计算字段。
例:band.Columns.Add("OrdrAmt1","金额");
band.Columns["OrdrAmt1"].Formula = "[OrdrSqr]*[OrdrPrc]";
需要注意的是如果使用了计算字段,则要增加UltraCalcManager如下:
UltraCalcManager calc = new UltraCalcManager(this.ultraGrid1.Container);
this.ultraGrid1.CalcManager = calc;
3.格式化数据
通过UltraGridColumn的ValueBasedAppearance来设置。
如:
ConditionValueAppearance cva = new ConditionValueAppearance();
OperatorCondition oc = new OperatorCondition(ConditionOperator.GreaterThanOrEqualTo, 1000);
Infragistics.Win.Appearance apce1=new Infragistics.Win.Appearance("apce1");
apce1.ForeColor =Color.Blue ;
cva.Add(oc, apce1);
band.Columns["OrdrAmt1"].ValueBasedAppearance = cva;
这样的结果将OrdrAmt1<=1000的前景色设置为红色;
4.NetAdvantage提供多个条件类支持格式化:
OperatorCondition:操作符条件,如>、=、<>等,还有一些字符串的操作如包含、以...开始;
FormulaCondition:公式条件,不支持逻辑操作符哦;
ConditionGroup:组合条件,如将OperatorCondition和FormulaCondition组合;
ComplementCondition:剩余条件,个人觉得只是方便建立条件而已,使用FormulaCondition也是可以的。
TrueCondition:真条件。这个有点特殊,条件按顺序解析的。如果已经解析,则不会在以TrueCondition覆盖。
5.ConditionGroup示例如下:
ConditionValueAppearance cva = new ConditionValueAppearance();
OperatorCondition oc = new OperatorCondition(ConditionOperator.GreaterThanOrEqualTo, 1000);
FormulaCondition fc = new FormulaCondition(formulaProvider, "[OrdrAmt1]<=5000");
ConditionGroup cg = new ConditionGroup();
cg.Add(oc);
cg.Add(fc);
cg.CombineOperator = LogicalOperator.And;
Infragistics.Win.Appearance apce1 = new Infragistics.Win.Appearance("apce1");
apce1.ForeColor = Color.Yellow;
apce1.BackColor = Color.Black;
cva.Add(cg, apce1);