/// <summary> /// To call the Standard Rate popUp Form to create a new Standard rate /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvStandardRate_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex != -1) { if (dgvStandardRate.CurrentCell == dgvStandardRate.CurrentRow.Cells["dgvbtnStandardRate"]) { frmStandardRatePopupObj = new frmStandardRatePopup(); frmStandardRatePopupObj.MdiParent = formMDI.MDIObj; decimal decProductId = Convert.ToDecimal(dgvStandardRate.Rows[e.RowIndex].Cells["dgvtxtProductId"].Value.ToString()); dgvStandardRate.Rows[e.RowIndex].Cells["dgvtxtSlNo"].Selected = true; frmStandardRatePopupObj.CallFromStandardRate(decProductId, this); } } } catch (Exception ex) { formMDI.infoError.ErrorString = "SR9" + ex.Message; } }
/// <summary> /// To call the Standard Rate popUp Form to create a new Standard rate /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvStandardRate_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex != -1) { if (dgvStandardRate.CurrentCell == dgvStandardRate.CurrentRow.Cells["dgvbtnStandardRate"]) { frmStandardRatePopupObj = new frmStandardRatePopup(); frmStandardRatePopupObj.MdiParent = formMDI.MDIObj; decimal decProductId = Convert.ToDecimal(dgvStandardRate.Rows[e.RowIndex].Cells["dgvtxtProductId"].Value.ToString()); dgvStandardRate.Rows[e.RowIndex].Cells["dgvtxtSlNo"].Selected = true; frmStandardRatePopupObj.CallFromStandardRate(decProductId, this); } } } catch (Exception ex) { MessageBox.Show("SR9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }