会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Keep Walking
no matter what has happened...what's happening...what will happen...we must be on the way...
博客园
首页
新随笔
联系
管理
订阅
GridView RowCommand 获取列值
//
根据按钮属性,进行操作
protected
void
GridView1_RowCommand(
object
sender, GridViewCommandEventArgs e)
{
if
(e.CommandName
==
"
Insert
"
&&
Page.IsValid)
{
BluePrintDataSource.Insert();
SendUserToLastPage
=
true
;
}
if
(e.CommandName
==
"
AddStage
"
)
{
int
index
=
Convert.ToInt32(e.CommandArgument);
DataKey key
=
this
.GridView1.DataKeys[index];
BluePrintID
=
Convert.ToInt32(key.Value);
FormView1.Visible
=
true
;
Label Label2
=
(Label)
this
.GridView1.Rows[index].Cells[
1
].FindControl(
"
Label2
"
);
LabelMessage.Text
=
"
- 您现在正在为项目编号为:
"
+
Label2.Text.ToString()
+
"
添加阶段记录
"
;
}
}
posted @
2007-12-31 01:57
Fernando
阅读(
1941
) 评论(
3
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告