// delete row from database public void Delete(SqlTransaction trans, int id) { PurchaseData dao = new PurchaseData(ConnStr, trans); dao.Delete(id); ResetProperties(); }