All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
visual c++建立菜单资源
XML入门教程:了解认识XML_[XML教程]
关于在php.ini中添加extension=php_mysqli.dll指令的说明_php资料_编程技术
PHP开发中接收复选框信息的方法_php资料_编程技术
SQL Server2000连接中三个最常见错误分析_[SQL Server教程]
动态网页技术PHP语法学习笔记_php资料_编程技术
网页技巧:如何在网页上实现音乐播放?_JavaScript技术_编程技术
使用ADO.net将数据导出到Excel并提供下载_[Asp.Net教程]
.NET中加密与解密QueryString的方法_[Asp.Net教程]
Weblogic,Portal中实现AJAX编程之架构_[Asp.Net教程]
Reading number is top 10 pictures
2012 national geographic daily picture6
Angie Chiu vijara myth2
Startling Russian girl blind date scene1
XuRe xuan cool and refreshing photoes2
From China fortress sora aoi1
Ashlynn Brooke show proud chest measurement1
Sora aoi calligraphy show
NeedWallpaper6
女人化妆前后的对比
Ashlynn Brooke show proud chest measurement2
Download software ranking
The cock of the Grosvenor LTD handsome
Boxer's Top ten classic battle9
传奇私服架设教程
美女写真2
星际争霸1.08硬盘免安装版
艳兽都市
尖东毒玫瑰B
jdk1.6 for windows
仙剑奇侠传98硬盘WINXP版
Boxer's Top ten classic battle7
归海一刀 published in(发表于) 2014/1/30 1:37:27 Edit(编辑)
根据主键,合并gridview的行_[Asp.Net教程]

根据主键,合并gridview的行_[Asp.Net教程]

根据主键,合并gridview的行_[Asp.Net教程]
/// 要合并行的gridview
/// 要合并行的列集合
/// 合并所依据的主键
public static void GroupRows(GridView GridView1, int[] cellNums, string keyname)
{
int i = 0, rowSpanNum = 1;
while (i {
GridViewRow gvr = GridView1.Rows[i];
for (++i; i < GridView1.Rows.Count; i++)
{
GridViewRow gvrNext = GridView1.Rows[i];
if (GridView1.DataKeys[i - 1][keyname].ToString() == GridView1.DataKeys[i][keyname].ToString())
{
for (int s = 0; s < cellNums.Length; s++)
{
gvrNext.Cells[cellNums[s]].Visible = false;
}
rowSpanNum++;
}
else
{
for (int s = 0; s < cellNums.Length; s++)
{
gvr.Cells[cellNums[s]].RowSpan = rowSpanNum;
}
rowSpanNum = 1;
break;
}
if (i == GridView1.Rows.Count - 1)
{
for (int s = 0; s < cellNums.Length; s++)
{
gvr.Cells[cellNums[s]].RowSpan = rowSpanNum;
}
}
}
}
}


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.