???"Update Requires a valid InsertCommand when passed DataRow collection with new rows". ????

Dec 20 2004 8:13 AM
I am entering new values in text box and want to insert it in the table. I am using the following code: int aa=Int32.Parse(textBox1.Text); string ss=textBox2.Text; DataRow drAdd; drAdd=ds.Tables[0].NewRow(); drAdd[0]=aa; drAdd[1]=ss; ds.Tables[0].Rows.Add(drAdd); cc.dataadapt.Update(ds,"Test"); When I try to execute the above code, I get the message"Update Requires a valid InsertCommand when passed DataRow collection with new rows". What is the solution?