public EmployeeInformationTDS.CostInformationDataTable GetCostsNew()
        {
            employeeInformationCosts = (EmployeeInformationTDS.CostInformationDataTable)Session["employeesCostsDummy"];
            if (employeeInformationCosts == null)
            {
                employeeInformationCosts = ((EmployeeInformationTDS)Session["employeeInformationTDS"]).CostInformation;
            }

            return employeeInformationCosts;
        }
        protected void AddCostsNewEmptyFix(GridView grdView)
        {
            if (grdCosts.Rows.Count == 0)
            {
                int companyId = Int32.Parse(hdfCompanyId.Value);
                EmployeeInformationTDS.CostInformationDataTable dt = new EmployeeInformationTDS.CostInformationDataTable();
                dt.AddCostInformationRow(-1, -1, DateTime.Now, "", 0, 0, 0, 0, 0, 0, false, companyId, false, 0, 0, 0);
                Session["employeesCostsDummy"] = dt;

                grdCosts.DataBind();
            }

            // Normally executes at all postbacks
            if (grdCosts.Rows.Count == 1)
            {
                EmployeeInformationTDS.CostInformationDataTable dt = (EmployeeInformationTDS.CostInformationDataTable)Session["employeesCostsDummy"];
                if (dt != null)
                {
                    grdCosts.Rows[0].Visible = false;
                    grdCosts.Rows[0].Controls.Clear();
                }
            }
        }