このテーマについて質問しました。すべての行には、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.
削除ボタンをクリックすると、どの機能が有効になりますか?
この関数のコードはどうあるべきですか?