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
repkin05
NA
10
0
Error "Update requires a valid InsertCommand"
May 18 2004 8:59 AM
I have dataRow as named dRow; I have dataSet as named dSet; I have dataAdapter as named adapter; I have set like that dRow = dSet.Tables[0].NewRow(); then I have set dRow like dRow["colName"] = "value"; and then I have wrote that dSet.Tables[0] .Rows.Add( dRow ); at last I write that adapter.Update( dSet , "tableName" ); But it gives tihs error "Update requires a valid InsertCommand when passed DataRow collection with new rows." But I have insert only one row. Why it gives this error and how can I fix it?
Reply
Answers (
2
)
call listview item from parent form
Scroll bars in DataGrid are not being shown