Results 1 to 1 of 1

Thread: [Resolved] Adding a new datarow

Threaded View

  1. #1

    Thread Starter
    Addicted Member Pythagoras's Avatar
    Join Date
    Feb 2005
    Location
    Greece
    Posts
    137

    [Resolved] Adding a new datarow

    What is wrong with this code:
    VB Code:
    1. private void button1_Click(object sender, EventArgs e)
    2.         {
    3.             dsTime_Solutions.EmployeeRow dr = (dsTime_Solutions.EmployeeRow)this.dsTime_Solutions1.Employee.NewRow();
    4.             dr["Name"] = "Tim";
    5.             dr["Password"] = "1234";
    6.             this.dsTime_Solutions1.Employee.AddEmployeeRow(dr);
    7.             this.taEmployee.Update(this.dsTime_Solutions1.Employee);
    8.         }

    This code does add the new row to the dataset, but not to the database? What am I doing wrong?



    The resolution was a setting I made in the IDE!!!!!
    Last edited by Pythagoras; Jan 1st, 2006 at 11:22 AM.
    Visual Studio.Net 2003

    "Every man has been made by God in order to acquire knowledge and contemplate."
    --Pythagoras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width