您的位置:首页 > 其它

GridView RowCommand Index

2011-10-08 13:31 253 查看
前台绑定时:CommandArgument=<%#((GridViewRow) Container).RowIndex %>

后台获取索引:int rowIndex = Convert.ToInt32(e.CommandArgument);

这样可以在RowCommand方法里获取到RowIndex.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: