private void btnUpdate_Click(object sender, EventArgs e) { SqlConnection con = Helper.getconnection(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandType = CommandType.Text; string PrjID = txtPrjID.Text; string PrjName = txtPrjNmae.Text; string Description = txtPrjdescription.Text; string Date = txtPrjDate.Text; string Size = txtPrjSize.Text; string Manager = txtPrjManager.Text; cmd.CommandText = "Update Projects set ProjectName= '" + PrjName + "', Description='" + Description + "', DateStarted='" + Date + "',TeamSize='" + Size + "',Manager='" + Manager + "' where ProjectID= " + PrjID + " "; MessageBox.Show("Project Details are updated"); dataGridView2.Update(); dataGridView2.Refresh(); con.Open(); cmd.ExecuteNonQuery(); con.Close(); }
BindEmployeeDetails();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)