protected void btnDelete_Click(object sender, EventArgs e) { int id = Convert.ToInt32(txtIDProizvodjac.Text); try { proxy.DeleteProizvodjac(id); lblStatus.Text = "Svi podaci uspješno izbrisani"; ClearAll(); FillGridView(); btnSave.Enabled = true; btnUpdate.Enabled = false; btnDelete.Enabled = false; } catch (Exception ex) { lblStatus.Text = ("Podaci nisu izbrisani zbog greške: " + ex); } }