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

推荐订阅源

WordPress大学
WordPress大学
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
V
Visual Studio Blog
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
量子位
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
M
MIT News - Artificial intelligence
爱范儿
爱范儿
B
Blog RSS Feed
MyScale Blog
MyScale Blog
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
L
LangChain Blog
D
Docker

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

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

如何访问rows

ultraGrid.Rows:访问顶层的所有行。如果启用了分组,则返回分组的所有行;
也就是返回的既可能是UltraGridRow,也可能是UltraGridGroupByRow;
ultraGrid.DisplayLayout.Rows:这个作用同ultraGrid.Rows,为什么要这样设计呢?
UltraGridBand是没有Rows属性的,有点奇怪;
ultraGrid1.DisplayLayout.Bands[0].Layout.Rows
ultraGrid1.DisplayLayout.Bands[0].Layout.Rows
。。。
这些都是同ultraGrid.Rows,因为Layout同样返回关联的UltraGridLayout,同ultraGrid1.DisplayLayout;
那如何访问UltraGridRow的rows呢?
想当然,觉得应该是UltraGridRow.Rows!实际中没有发现这个属性。
查资料发现原来是通过ChildBands,原来在一个行中还可以由多个UltraGridChildBand的。
而UltraGridChildBand中有Rows属性;
UltraGridGroupByRow也具有Rows属性;


outlook分组方式:
ultraGrid1.DisplayLayout.ViewStyleBand = ViewStyleBand.OutlookGroupBy

标题是否可见:
ultraGrid.DisplayLayout.CaptionVisible = DefaultableBoolean.False
这样也可以:ultraGrid.Text = string.Empty