Good day! There was a following problem, during the work with SqlDataAdapter . I registered commands ( Delete , Insert , Update ) for the adapter and they work fine, BUT if I perform a specific search for a record in the table ( select*from... where... ), and I try to delete this record, then I get the following error:
The update element requires a valid deletecommand when transferring a DataRow collection with deleted rows.
Adapterhas four types of commands (SelectCommand,InsertCommand,UpdateCommandandDeleteCommand). In each of these parameters, a request or stored procedure is written. You do not have the text inDeleteCommandorUpdateCommandapparently. It would be necessary to bring their teams written. - Denis BubnovWindow_Load, in order to avoid data rubbing. And about the error, it seems yourDeleteCommanddoes not satisfy some conditions - Denis Bubnov