Thanks!
if (contactedtype == "update")
{
DataRow[] customerRow =
fabCatDBDataSet.Tables["contactlist"].Select("contactID = '" + contactedcontactID + "'");
//put textboxes to table
customerRow[0]["title"] = contactedtitle;
customerRow[0]["firstname"] = contactedfirst;
customerRow[0]["lastname"] = contactedlast;
customerRow[0]["jobtitle"] = contactedjob;
customerRow[0]["phone"] = contactedtele;
customerRow[0]["fax"] = contactedfax;
customerRow[0]["cell"] = contactedcell;
customerRow[0]["email"] = contactedemail;
customerRow[0]["notes"] = contactednotes;
customerRow[0]["contactID"] = contactedcontactID;
customerRow[0]["clientlistID"] = contactedclientID;
//update and save
this.Validate();
this.contactlistBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.fabCatDBDataSet);
}

New Topic/Question
Reply




MultiQuote



|