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

推荐订阅源

N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs
博客园 - 叶小钗
P
Privacy International News Feed
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
T
Threatpost
IT之家
IT之家
博客园 - 聂微东
Know Your Adversary
Know Your Adversary
Help Net Security
Help Net Security
罗磊的独立博客
I
Intezer
S
Schneier on Security
博客园_首页
C
CERT Recently Published Vulnerability Notes
雷峰网
雷峰网
Cisco Talos Blog
Cisco Talos Blog
宝玉的分享
宝玉的分享
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
MyScale Blog
MyScale Blog
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
H
Heimdal Security Blog
S
Secure Thoughts
Hacker News: Ask HN
Hacker News: Ask HN
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
SecWiki News
SecWiki News
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
T
Threat Research - Cisco Blogs
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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

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

数据呈现
1.单元格合并。
缺省是不合并的。
this.ultraGrid1.DisplayLayout.Override.MergedCellStyle = MergedCellStyle.Always;所有的band中的column总是合并。
OnlyWhenSorted:仅当排序的时候再合并。
在band\column级别都有MergedCellStyle,即可只针对band和column来设置单元格合并;
注意:如果子级别对象已经修改,父级别对象的属性不会覆盖,所以:
this.ultraGrid1.DisplayLayout.Bands[1].Columns["SpecWth"].MergedCellStyle = MergedCellStyle.Never;
this.ultraGrid1.DisplayLayout.Bands[1].Columns["SpecHgt"].MergedCellStyle = MergedCellStyle.Never;
this.ultraGrid1.DisplayLayout.Bands[0].Override.MergedCellStyle = MergedCellStyle.Never;           
this.ultraGrid1.DisplayLayout.Override.MergedCellStyle = MergedCellStyle.Always;
的执行效果和
this.ultraGrid1.DisplayLayout.Override.MergedCellStyle = MergedCellStyle.Always;
this.ultraGrid1.DisplayLayout.Bands[0].Override.MergedCellStyle = MergedCellStyle.Never;
this.ultraGrid1.DisplayLayout.Bands[1].Columns["SpecWth"].MergedCellStyle = MergedCellStyle.Never;
this.ultraGrid1.DisplayLayout.Bands[1].Columns["SpecHgt"].MergedCellStyle = MergedCellStyle.Never;
的执行效果是一样的。
2.确定了合并,还有确定合并的方式,有MergeSameValue和MergeSameText两种方式。
当然合并方式只是针对具体的列的。
设置所有的列,可以用一个循环处理;
foreach(UltraGridColumn ugc in ultraGrid1.DisplayLayout.Bands[1].Columns)
   ugc.MergedCellEvaluationType = MergedCellEvaluationType.MergeSameText;
         
3.隐藏列
this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].Hidden = true;
4.列顺序
this.ultraGrid1.DisplayLayout.Bands[0].Columns[2].Header.VisiblePosition = 4;
注意这个顺序包含隐含列哦。
这个属性为什么不在Column上呢?

posted on 2012-02-14 13:30  木人(我现在不是老大)  阅读(481)  评论()    收藏  举报