Hi everyone,
Using C#, Windows forms. I am trying to learn how to modify existing data
with in MSDE table/fields. If anyone could help me out with my code, I would
appreciate it. My code is as follows:
private void btnEmpModify_Cl ick(object sender, System.EventArg s e)
{
DataTable thisTable = dsModifyRecord. Tables["Employee"];
//THIS IS WHERE I'M GETTING LOST
DataRow thisRow = thisTable?????? ?????????
thisRow["EmplNumber "] = txtBoxEmplNumbe r.Text;
thisRow["EmpFName"] = txtBoxEmpFName. Text;
thisRow["EmpLName"] = txtBoxLNName.Te xt;
thisRow["DateModifi ed"] = DateTime.Now.To String();
thisRow["EmployeeNo tes"] = txtBoxEmpNotes. Text;
//& GETTING LOST HERE
dsModifyRecord. Tables["EMPLOYEE"]??????????????
sqlDataAdapter1 .Update(dsModif yRecord, "Employee") ;
}
Thank you all in advance.
MikeY
Using C#, Windows forms. I am trying to learn how to modify existing data
with in MSDE table/fields. If anyone could help me out with my code, I would
appreciate it. My code is as follows:
private void btnEmpModify_Cl ick(object sender, System.EventArg s e)
{
DataTable thisTable = dsModifyRecord. Tables["Employee"];
//THIS IS WHERE I'M GETTING LOST
DataRow thisRow = thisTable?????? ?????????
thisRow["EmplNumber "] = txtBoxEmplNumbe r.Text;
thisRow["EmpFName"] = txtBoxEmpFName. Text;
thisRow["EmpLName"] = txtBoxLNName.Te xt;
thisRow["DateModifi ed"] = DateTime.Now.To String();
thisRow["EmployeeNo tes"] = txtBoxEmpNotes. Text;
//& GETTING LOST HERE
dsModifyRecord. Tables["EMPLOYEE"]??????????????
sqlDataAdapter1 .Update(dsModif yRecord, "Employee") ;
}
Thank you all in advance.
MikeY
Comment