我刚刚问了一个关于这个主题的问题;所有行在 Gridview 中都有一个删除按钮
我有一张简单的桌子AVUKAT
列 --> HESAP
, MUSTERI
,AVUKAT
我在 Gridview 中显示数据。
我激活AutoGenerateDeleteButton
。
但是当我单击一行的删除按钮时,我收到了这样的错误。
Server Error in '/' Application.
Deleting is not supported by data source 'GridviewDataSource' unless DeleteCommand is specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Deleting is not supported by data source 'GridviewDataSource' unless DeleteCommand is specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
单击删除按钮时激活了哪个功能?
这个函数的代码应该是什么?