public ServiceInformationTDS.NoteInformationDataTable GetNotesNew()
        {
            serviceInformationServiceNote = (ServiceInformationTDS.NoteInformationDataTable)Session["serviceNotesDummy"];
            if (serviceInformationServiceNote == null)
            {
                serviceInformationServiceNote = ((ServiceInformationTDS)Session["serviceInformationTDS"]).NoteInformation;
            }

            return serviceInformationServiceNote;
        }
        protected void AddNotesNewEmptyFix(GridView grdView)
        {
            if (grdNotes.Rows.Count == 0)
            {
                int companyId = Int32.Parse(hdfCompanyId.Value);
                ServiceInformationTDS.NoteInformationDataTable dt = new ServiceInformationTDS.NoteInformationDataTable();
                dt.AddNoteInformationRow(-1, -1, "", -1, DateTime.Now, "", 0, "", "", false, companyId, false);
                Session["serviceNotesDummy"] = dt;

                grdNotes.DataBind();
            }

            // Normally executes at all postbacks
            if (grdNotes.Rows.Count == 1)
            {
                ServiceInformationTDS.NoteInformationDataTable dt = (ServiceInformationTDS.NoteInformationDataTable)Session["serviceNotesDummy"];
                if (dt != null)
                {
                    grdNotes.Rows[0].Visible = false;
                    grdNotes.Rows[0].Controls.Clear();
                }
            }
        }