Solve “Update requires a valid *Command when passed DataRow collection with modified rows”!
February 14, 2011 at 4:18 pm freedom2002 Leave a comment
When inserting/updating/deleting data from dataset and updating changes to database, error ”Update requires a valid *Command when passed DataRow collection with modified rows” can appear. Just create CommandBuilder object before calling Update method of DataSet. The CommandBuilder will help DataSet to create necessary commands (insert/update/delete) for the database operations.
Ph.
Advertisement
Entry filed under: programming, Tổng hợp. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed