[Resolved] Adding a new datarow
What is wrong with this code:
VB Code:
private void button1_Click(object sender, EventArgs e)
{
dsTime_Solutions.EmployeeRow dr = (dsTime_Solutions.EmployeeRow)this.dsTime_Solutions1.Employee.NewRow();
dr["Name"] = "Tim";
dr["Password"] = "1234";
this.dsTime_Solutions1.Employee.AddEmployeeRow(dr);
this.taEmployee.Update(this.dsTime_Solutions1.Employee);
}
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!!!!!