TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
eagle weir
NA
6
0
How to update with TableAdapter
Nov 27 2006 2:52 AM
I try to use TableAdapter to update modified data in DataGridView,with these code: this.wordRankTableAdapter.Update(aBDataSet.WordRank); always cause problem: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll System.InvalidOperationException: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataTable dataTable) at WordFrequencyRank.ABDataSetTableAdapters.WordRankTableAdapter.Update(WordRankDataTable dataTable) in C:\Documents and Settings\Administrator\??\WordFrequencyRank\WordFrequencyRank\ABDataSet.Designer.cs:line 740 at WordFrequencyRank.ConfigForm.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Administrator\??\WordFrequencyRank\WordFrequencyRank\ConfigForm.cs:line 48
Reply
Answers (
1
)
help me to print reports
Problem Converting xml file in sgml file