Mercury天地
博客园
首页
新随笔
联系
订阅
管理
随笔 - 12 文章 - 1 评论 - 3 trackbacks - 0
2007年9月11日
在GridView的RowCommand事件里面取得对应激发事件的列。
protected
void
EduView_RowCommand(
object
sender, GridViewCommandEventArgs e)
{
if
(e.CommandName
==
"
EduEdit
"
)
{
LinkButton lk
=
(LinkButton)e.CommandSource;
GridViewRow dr
=
(GridViewRow)lk.Parent.Parent;
//
取得对应行
}
}
posted @ 2007-09-11 12:45 Mercury 阅读(67) 评论(0)
编辑