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

推荐订阅源

T
Tor Project blog
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
G
Google Developers Blog
J
Java Code Geeks
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
I
Intezer
Jina AI
Jina AI
T
Tenable Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
The Hacker News
The Hacker News
F
Full Disclosure
Cloudbric
Cloudbric
量子位
H
Heimdal Security Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
罗磊的独立博客
V
Vulnerabilities – Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Recent Announcements
Recent Announcements
WordPress大学
WordPress大学
GbyAI
GbyAI
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
Recorded Future
Recorded Future
Security Archives - TechRepublic
Security Archives - TechRepublic
AI
AI
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hacker News: Front Page
Latest news
Latest news

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

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

几个词的含义:
Layout:布局,整体的布置方式。比如卡片视图、列头的位置、行布局;
Appearance:外观。比如前、背景颜色、文字对齐、图片等;
Style:风格。感觉这个是包含Appearance,大部分的都是通过Appearance来调整的。
1.在ultragrid中,你可以自定义preset用于grid,这样可以保持控件风格的一致性。
preset包含了外观和行为。
行为如是否可多选、可编辑等等。
2.分组布局
this.ultraGrid1.DisplayLayout.Bands[1].RowLayoutStyle = RowLayoutStyle.GroupLayout;
this.ultraGrid1.DisplayLayout.Bands[1].Header.Appearance.TextVAlign = VAlign.Middle;
           
this.ultraGrid1.DisplayLayout.Override.AllowRowLayoutColMoving = Infragistics.Win.Layout.GridBagLayoutAllowMoving.AllowAll;

           
UltraGridBand ugb=this.ultraGrid1.DisplayLayout.Bands[1];

UltraGridGroup ugd = ugb.Groups.Add("SpecInfo", "规格信息");

UltraGridGroup ugd1 = ugb.Groups.Add("SizeInfo", "尺寸信息");
UltraGridGroup ugd2 = ugb.Groups.Add("AddInfo", "辅助信息");

ugb.Groups["SizeInfo"].RowLayoutGroupInfo.ParentGroup = ugd;
ugb.Groups["AddInfo"].RowLayoutGroupInfo.ParentGroup = ugd;

ugb.Columns["SpecWth"].RowLayoutColumnInfo.ParentGroup = ugd1;
ugb.Columns["SpecHgt"].RowLayoutColumnInfo.ParentGroup = ugd1;
ugb.Columns["SpecSqr"].RowLayoutColumnInfo.ParentGroup = ugd2;
ugb.Columns["SpecWgt"].RowLayoutColumnInfo.ParentGroup = ugd2;
ugb.Columns["SpecGth"].RowLayoutColumnInfo.ParentGroup = ugd2;

foreach(UltraGridColumn ugc in ugb.Columns)
   ugc.RowLayoutColumnInfo.SpanY = 0;
3:RowLayout:可以对每行中的单元格进行布局。
UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];
band.RowLayoutStyle = RowLayoutStyle.ColumnLayout;

RowLayout rl1 = band.RowLayouts.Add("rl1");
rl1.ColumnInfos["OrdrID"].Initialize(0, 0, 2, 2);
rl1.ColumnInfos["CustID"].Initialize(2, 0, 2, 2);
rl1.ColumnInfos["OrdrProj"].Initialize(0, 2, 4, 2);

band.RowLayouts["rl1"].Apply();

RowLayout rl2 = band.RowLayouts.Add("rl2");
rl2.ColumnInfos["OrdrID"].Initialize(0, 0, 2, 2);
rl2.ColumnInfos["CustID"].Initialize(0, 2, 2, 2);
rl2.ColumnInfos["OrdrProj"].Initialize(2, 0, 2, 4);

band.RowLayouts["rl2"].Apply();