Advertisement

10.06.2005 at 07:27PM PDT, ID: 21586794
[x]
Attachment Details

Update requires a valid InsertCommand when passed DataRow collection with new rows

Asked by DjJohnny in Microsoft Visual Basic.Net

Tags: valid, requires, update, datarow, when

Hi Experts,

I have a dataset that is populated from a stored procedure.
There are textboxes that are filled in with the data. So far so good.
When the textboxes are changed I have a save Button that Called the Update command of the dataadapter

daFillBillTo.Update(DsCustBillTo1, "CustBillTo")

When I do this I get an error

"Update requires a valid Insert Command when passed DataRow collection with new rows"

It sounds like there is a new row in my dataset. The stored procedure returned 1 record.
I put a data grid on my page a bonded it to the dataset to see how many rows there were ,and there were only one row

I do not have a insert command in my dataadapter. I am not adding a row just updating for now

Any help would be great

JohnStart Free Trial
[+][-]10.06.2005 at 10:00PM PDT, ID: 15036191

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2005 at 10:02PM PDT, ID: 15036199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2005 at 09:32AM PDT, ID: 15040073

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2005 at 05:12PM PDT, ID: 15043113

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2005 at 07:45AM PDT, ID: 15044882

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: valid, requires, update, datarow, when
Sign Up Now!
Solution Provided By: BriCrowe
Participating Experts: 4
Solution Grade: A
 
 
[+][-]10.08.2005 at 09:39AM PDT, ID: 15045196

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.25.2005 at 04:29AM PDT, ID: 15153369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2005 at 08:47AM PDT, ID: 15155312

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2005 at 08:52AM PDT, ID: 15155381

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2005 at 10:18AM PDT, ID: 15156199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2005 at 10:21AM PDT, ID: 15156231

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32