public FlCatalystsAddTDS.FlCatalystsAddDataTable GetCatalystsNew()
        {
            flCatalystsAdd = (FlCatalystsAddTDS.FlCatalystsAddDataTable)Session["flCatalystsAddDummy"];

            if (flCatalystsAdd == null)
            {
                flCatalystsAdd = ((FlCatalystsAddTDS.FlCatalystsAddDataTable)Session["flCatalystsAdd"]);
            }

            return flCatalystsAdd;
        }
        protected void AddCatalystsNewEmptyFix(GridView grdCatalysts)
        {
            if (grdCatalysts.Rows.Count == 0)
            {
                int companyId = Int32.Parse(hdfCompanyId.Value);
                FlCatalystsAddTDS.FlCatalystsAddDataTable dt = new FlCatalystsAddTDS.FlCatalystsAddDataTable();
                dt.AddFlCatalystsAddRow(-1, "", -1, false, companyId, false);
                Session["flCatalystsAddDummy"] = dt;

                grdCatalysts.DataBind();
            }

            // Normally executes at all postbacks
            if (grdCatalysts.Rows.Count == 1)
            {
                FlCatalystsAddTDS.FlCatalystsAddDataTable dt = (FlCatalystsAddTDS.FlCatalystsAddDataTable)Session["flCatalystsAddDummy"];
                if (dt != null)
                {
                    grdCatalysts.Rows[0].Visible = false;
                    grdCatalysts.Rows[0].Controls.Clear();
                }
            }
        }