Command命令的控件是ImageButton则转换为ImageButton,Button,LinkButton亦然。
GridViewRow gvrow = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
int iindex = gvrow.RowIndex;
Command命令的控件是ImageButton则转换为ImageButton,Button,LinkButton亦然。
GridViewRow gvrow = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
int iindex = gvrow.RowIndex;