Command命令的控件是ImageButton则转换为ImageButton,Button,LinkButton亦然。

GridViewRow gvrow = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
 int iindex = gvrow.RowIndex;

posted on 2009-06-12 10:28  梅桦  阅读(316)  评论(0编辑  收藏  举报