private void btnUpdaeEquipment_Click(object sender, EventArgs e) { DataRow updateEquipmentRow = DM.dtEquipment.Rows[currencyManager.Position]; if (txtDescription.Text == "") { MessageBox.Show("You must type in a Equipment description", "Error"); } else { updateEquipmentRow["Description"] = txtDescription.Text; currencyManager.EndCurrentEdit(); DM.UpdateEquipment(); MessageBox.Show("Equipment updated successfully", "Success"); } return; }