在GridView自定义执行控件操作的时候,获取操作行索引的方法如下
int index = ((GridViewRow)(((Button)(e.CommandSource)).Parent.Parent)).RowIndex;
如果用GridView自带按钮执行操作时
int i = Convert.ToInt32(e.CommandArgument);

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2021-10-08
猜你喜欢
  • 2021-04-22
  • 2022-12-23
  • 2021-10-27
  • 2022-02-11
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案