void BindEmployeePayComponents() { decimal x = 0; lbl_HeadingText.Text = string.Empty; GridBindEmpPayroll.DataSource = EmployeePayrollManagement.GetInstance.GetEmployeePayrollList(); GridBindEmpPayroll.DataBind(); foreach (GridViewRow gr in GridBindEmpPayroll.Rows) { x = x + decimal.Parse(gr.Cells[22].Text); } txt_NetPayMonth.Text = x.ToString(); lbl_HeadingText.Text = "For period [" + DropDown_Month.SelectedItem.Text + "-" + DropDown_Year.SelectedItem.Text + "] of season " + DropDown_Session.SelectedItem.Text + " on dated :" + txt_DateOfPay.Text; }