血色残阳的专栏
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
用户操作
[即时聊天]
[发私信]
[加为好友]
血色残阳
ID:wangjun_pfc
共
78522
次访问,排名
1272
好友
11
人,关注者
11
人
wangjun_pfc的文章
原创 257 篇
翻译 0 篇
转载 206 篇
评论 58 篇
最近评论
gaoqin:
看了你的资料我的问题已解决,不过属性文件名我只能写成
messages_zh.properties (中文)
messages_en.properties (英文)
如果像你那样就又出现那个问题,那是什么原因呀!
eagle:
nios的这个编译器做的真叫垃圾,界面乱糟糟的都不知道是些什么,而且编译速度还很慢。比起ADS来那是差远了,用的真是难受。
mayll:
我也成功了
caohenghui:
SB.copy 别人的东西有意思吗!
江桃:
还不错,请继续
文章分类
.net技术
(RSS)
AJAX技术
(RSS)
Eclipse
(RSS)
flex技术
(RSS)
j2ee技术
(RSS)
j2me技术
(RSS)
j2se技术
(RSS)
JavaScript技术
(RSS)
Joomla
(RSS)
Linux
(RSS)
SCJP考题
(RSS)
SOA技术
(RSS)
本体
(RSS)
各种开发工具的使用
(RSS)
股票
(RSS)
精典文章
(RSS)
课程
(RSS)
敏捷开发
(RSS)
嵌入式系统
(RSS)
软件工程
(RSS)
手机
(RSS)
数据库
(RSS)
团队管理
(RSS)
学习心得
(RSS)
收藏
代码下载站
技术学习站
相册
C技术网站
CSDN.NET - 中国最大的IT技术社区
java技术网站
存档
2008年10月(1)
2008年09月(6)
2008年08月(1)
2008年07月(1)
2008年06月(8)
2008年05月(17)
2008年04月(67)
2008年03月(85)
2008年02月(3)
2008年01月(38)
2007年12月(60)
2007年11月(37)
2007年10月(91)
2007年09月(9)
2007年08月(10)
2007年07月(19)
2007年06月(10)
软件项目交易
订阅我的博客
合并相同项的单元格
收藏
新一篇: 根据当前时间获取学年和学期
|
旧一篇: 验证控件
private
void
CellJoin(
int
col,
int
mark)
...
{
String celltext;
//
要合并的单元格
String cellMarktext;
//
第二个单元格参照
int
i
=
0
;
int
j
=
0
;
int
k
=
col;
celltext
=
grid.Items[
0
].Cells[col].Text;
//
要合并的单元格
cellMarktext
=
grid.Items[
0
].Cells[mark].Text;
//
第二个单元格参照
for
(j
=
1
; j
<=
grid.Items.Count
-
1
; j
++
)
...
{
if
(mark
==
1
)
...
{
if
(grid.Items[j].Cells[col].Text
==
celltext)
...
{
grid.Items[j].Cells[col].Visible
=
false
;
//
.RemoveAt(k);
//
隐藏单元格
grid.Items[i].Cells[col].RowSpan
=
j
-
i
+
1
;
}
else
...
{
celltext
=
grid.Items[j].Cells[col].Text;
i
=
j;
}
}
else
...
{
if
(grid.Items[j].Cells[col].Text
==
celltext
&&
grid.Items[j].Cells[mark].Text
==
cellMarktext)
...
{
grid.Items[j].Cells[col].Visible
=
false
;
//
.RemoveAt(k);
//
隐藏单元格
grid.Items[i].Cells[col].RowSpan
=
j
-
i
+
1
;
}
else
...
{
celltext
=
grid.Items[j].Cells[col].Text;
cellMarktext
=
grid.Items[j].Cells[mark].Text;
//
第二个单元格参照
i
=
j;
}
}
}
}
private
void
CellJoin(
int
col,
int
mark,
int
flag)
...
{
String celltext;
//
要合并的单元格
String cellMarktext;
//
第一个单元格参照
String cellflagtext;
//
第二个单元格参照
int
i
=
0
;
int
j
=
0
;
int
k
=
col;
celltext
=
grid.Items[
0
].Cells[col].Text;
//
要合并的单元格
cellMarktext
=
grid.Items[
0
].Cells[mark].Text;
//
第一个单元格参照
cellflagtext
=
grid.Items[
0
].Cells[flag].Text;
//
第二个单元格参照
for
(j
=
1
; j
<=
grid.Items.Count
-
1
; j
++
)
...
{
if
(mark
==
1
&&
flag
==
1
)
...
{
if
(grid.Items[j].Cells[col].Text
==
celltext)
...
{
grid.Items[j].Cells[col].Visible
=
false
;
//
.RemoveAt(k);
//
隐藏单元格
grid.Items[i].Cells[col].RowSpan
=
j
-
i
+
1
;
}
else
...
{
celltext
=
grid.Items[j].Cells[col].Text;
i
=
j;
}
}
else
...
{
if
(grid.Items[j].Cells[col].Text
==
celltext
&&
grid.Items[j].Cells[mark].Text
==
cellMarktext
&&
grid.Items[j].Cells[flag].Text
==
cellflagtext)
...
{
grid.Items[j].Cells[col].Visible
=
false
;
//
.RemoveAt(k);
//
隐藏单元格
grid.Items[i].Cells[col].RowSpan
=
j
-
i
+
1
;
}
else
...
{
celltext
=
grid.Items[j].Cells[col].Text;
cellMarktext
=
grid.Items[j].Cells[mark].Text;
//
第一个单元格参照
cellflagtext
=
grid.Items[j].Cells[flag].Text;
//
第二个单元格参照
i
=
j;
}
}
}
}
发表于 @
2007年07月25日 13:19:00
|
评论(
loading...
)
|
编辑
新一篇: 根据当前时间获取学年和学期
|
旧一篇: 验证控件
评论:没有评论。
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
登录