private void btnUpdateDryerRate_Click(object sender, EventArgs e) { try { objPRPDBatch_DL.UpdateDryerDate(dgvPRPDbatchByState.CurrentRow.Cells["PRPDBatchID"].Value.ToString(), Convert.ToDecimal(txtDryerRate.Text)); Load_Batch_List(); } catch (Exception) { MessageBox.Show(this, "Error occured while loading Batch details", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }