Я только что задал вопрос на эту тему; У всей строки есть кнопка удаления в 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.
Какая функция активируется при нажатии кнопки удаления?
Каким должен быть код этой функции?