在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