开发过程中遇到了GridView 激发了未处理的事件“RowEditing”这样的一个错误,

但是可以确定的是我没有在GridView中使用RowEditing方法,可是为什么回报这错误呢?

通过在网上搜索,发现如果在

<asp:ButtonField ShowHeader="true" CommandName="edit" ButtonType="Link" HeaderText="修改"
                        HeaderStyle-Width="5%" DataTextFormatString="select{0}" Text="修改" ItemStyle-HorizontalAlign="Center" />中CommandName的值是“edit”的话就会报错这样的错误。

随后修改edit换成其他的名字就不再报错了。


相关文章:

  • 2021-08-05
  • 2021-05-19
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-05-24
相关资源
相似解决方案