/// <summary> /// When doubleclicking on the grid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvAccountGroupReport_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (dgvAccountGroupReport.CurrentRow.Index == e.RowIndex) { decimal decAccountGroupId = Convert.ToDecimal(dgvAccountGroupReport.Rows[e.RowIndex].Cells["dgvtxtAccountGroupId"].Value.ToString()); frmAccountGroupwiseReport frmAccountGroupwiseReportObj = new frmAccountGroupwiseReport(); frmAccountGroupwiseReportObj.MdiParent = formMDI.MDIObj; frmAccountGroupwiseReportObj.CallFromAccountGroupReport(this, decAccountGroupId, txtFromDate.Text, txtToDate.Text); } } catch (Exception ex) { MessageBox.Show("AGR:12" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// When doubleclicking on the grid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvCashOrBank_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex > -1) { if (dgvCashOrBank.CurrentRow.Index == e.RowIndex) { decimal decAccountGroupId = Convert.ToDecimal(dgvCashOrBank.Rows[e.RowIndex].Cells["dgvtxtGroupId"].Value.ToString()); frmAccountGroupwiseReport frmAccountGroupwiseReportObjt = new frmAccountGroupwiseReport(); frmAccountGroupwiseReportObjt.MdiParent = formMDI.MDIObj; frmAccountGroupwiseReportObjt.CallFromCashBankBook(dtpFromDate.Value.ToString(), dtpToDate.Value.ToString(), decAccountGroupId, this); this.Enabled = false; } } } catch (Exception ex) { MessageBox.Show("CBBOOK08 :" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }