前台绑定时:CommandArgument=<%#((GridViewRow) Container).RowIndex %>
后台获取索引:int rowIndex = Convert.ToInt32(e.CommandArgument);
这样可以在RowCommand方法里获取到RowIndex.
前台绑定时:CommandArgument=<%#((GridViewRow) Container).RowIndex %>
后台获取索引:int rowIndex = Convert.ToInt32(e.CommandArgument);
这样可以在RowCommand方法里获取到RowIndex.