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

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

相关文章:

  • 2022-12-23
  • 2022-02-23
  • 2021-05-29
  • 2021-06-13
  • 2021-07-09
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2021-05-29
  • 2022-02-28
相关资源
相似解决方案