Command命令的控件是ImageButton则转换为ImageButton,Button,LinkButton亦然。
GridViewRow gvrow = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
int iindex = gvrow.RowIndex;
2023-11-18 12:55:04
Command命令的控件是ImageButton则转换为ImageButton,Button,LinkButton亦然。
GridViewRow gvrow = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
int iindex = gvrow.RowIndex;