protected void CreateDataGridHistoryStato(string tipoOggetto) { string language = UIManager.UserManager.GetUserLanguage(); if (DocumentManager.getSelectedRecord().docNumber != null) { DataSet ds = DiagrammiManager.getDiagrammaStoricoDoc(DocumentManager.getSelectedRecord().docNumber); if (ds != null && ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0) { this.GridViewStoricoStati.DataSource = ds; this.DatagridStoricoStati.Visible = true; this.GridViewDocHistoryPnl.Visible = false; //this.lblDettagliStato.Visible = false; this.lblDettagli.Visible = false; this.GridViewStoricoStati.DataBind(); this.GridViewStoricoStati.HeaderRow.Cells[0].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid1", language); this.GridViewStoricoStati.HeaderRow.Cells[1].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid2", language); this.GridViewStoricoStati.HeaderRow.Cells[2].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid0", language); this.GridViewStoricoStati.HeaderRow.Cells[3].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid3", language); } else { //this.lblDettagliStato.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language); //this.lblDettagliStato.Visible = true; this.lblDettagli.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language); this.lblDettagli.Visible = true; return; } } else { //this.lblDettagliStato.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language); //this.lblDettagliStato.Visible = true; this.lblDettagli.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language); this.lblDettagli.Visible = true; return; } }