private void OpenRecord() { dtCurr = objPayrollMgr.SelectCurrencyList(0); grCurrency.DataSource = dtCurr; grCurrency.DataBind(); foreach (GridViewRow gRow in grCurrency.Rows) { gRow.Cells[5].Text = Convert.ToString(Math.Round(Convert.ToDouble(Common.ReturnZeroForNull(gRow.Cells[5].Text)), 2)); } }
private void OpenRecord() { dtSalaryHead = objPayrollMgr.SelectSalaryHead(0, "N"); dtBonus = objPayrollMgr.SelectBonusPackage(0); grBonus.DataSource = dtBonus; grBonus.DataBind(); foreach (GridViewRow gRow in grBonus.Rows) { gRow.Cells[3].Text = Convert.ToString(Math.Round(Convert.ToDouble(Common.ReturnZeroForNull(gRow.Cells[3].Text)), 2)); gRow.Cells[6].Text = Convert.ToString(Math.Round(Convert.ToDouble(Common.ReturnZeroForNull(gRow.Cells[6].Text)), 2)); } dtSalaryHead = objPayrollMgr.SelectSalaryHead(0, "N"); this.Bind_DdlSalaryHead(); dtCurr = objPayrollMgr.SelectCurrencyList(0); this.Bind_DdlCurrency(); }