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

推荐订阅源

K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
W
WeLiveSecurity
L
LINUX DO - 最新话题
IT之家
IT之家
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
Google Online Security Blog
Google Online Security Blog
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
T
Troy Hunt's Blog
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
S
Security Affairs
N
News and Events Feed by Topic
S
Securelist
美团技术团队
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
J
Java Code Geeks
A
Arctic Wolf
Blog — PlanetScale
Blog — PlanetScale
量子位
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The GitHub Blog
The GitHub Blog
Webroot Blog
Webroot Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Full Disclosure
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
K
Kaspersky official blog
Google DeepMind News
Google DeepMind News
Know Your Adversary
Know Your Adversary
S
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
Cisco Talos Blog
Cisco Talos Blog
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
U
Unit 42
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
宝玉的分享
宝玉的分享
Hacker News - Newest:
Hacker News - Newest: "LLM"
MongoDB | Blog
MongoDB | Blog
S
Security @ Cisco Blogs

博客园 - lrary

JavaScript经典技巧 - lrary - 博客园 动态添加ASP.NET控件并绑定处理事件一例 - lrary - 博客园 脚本收藏 - lrary - 博客园 一些sql语句的详细解释[转] 特殊的DataGrid的绑定 - lrary - 博客园 纯脚本搞掂DataGrid表表头不动,表身滚动。(转摘) - lrary - 博客园 检验密码强度的JS类 - lrary - 博客园 数据库设计规范 V2.0 SQL语句特---殊统计(1) DataGrid怎么产生一个分类的题头 AJAX 在.net的应用 sql怎么使用外连接 Asp.NET程序中常用的三十三种代码 检测含有中文字符串的实际长度 根据区位得到汉字拼音首字母(c#) 认识ASP.NET配置文件Web.config Asp.net(C#)实现验证码功能 给Repeater、Datalist和Datagrid增加自动编号列 查找和统计页面上控件
DataGrid 多行
lrary · 2006-05-09 · via 博客园 - lrary

 1private void DataGrid_Join()
 2 {
 3            int iRow, iSpan=1, iRow_Start=0;        //定义当前行数,合并行数,合并开始行标志
 4            string sSText, sNText;                    //比较源文本,比较下一文本
 5
 6            for(iRow=0; iRow<DataGrid1.Items.Count-1; iRow++)
 7            {
 8                sSText    = DataGrid1.Items[iRow].Cells[1].Text;
 9                sNText    = DataGrid1.Items[iRow+1].Cells[1].Text;
10                if(sSText == sNText)
11                {
12                    DataGrid1.Items[iRow+1].Cells[2].Visible    = false;
13                    iSpan++;
14                }

15                else
16                {
17                    iSpan        = 1;
18                    iRow_Start    = iRow+1;
19                }

20                DataGrid1.Items[iRow_Start].Cells[2].RowSpan    = iSpan;
21            }

22
23            //清除临时列
24            DataGrid1.Columns[1].Visible    = false;
25        }
 
26