【转】通过在RowDataBound事件中把行索引绑定到控件的CommandArgument,然后在RowCommand事件中取出
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidGridView1_RowCommand(objectsender,GridViewCommandEventArgse){introwIndex=-1;GridViewRowrow=null;switch(e.CommandName){case"Command1"://模板列//对于模板列内的按钮,我们需要显示绑定行索引到按钮的CommandArgument属性//以获取 阅读全文
posted @ 2010-12-07 01:00 LeeXiaoLiang 阅读(294) 评论(0) 推荐(0) 编辑