protected void ArchiveStudyStorageGridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int index = ArchiveStudyStorageGridView.PageIndex * ArchiveStudyStorageGridView.PageSize + e.Row.RowIndex; ArchiveStudyStorage storage = _storage[index]; Label xmlLabel = e.Row.FindControl("XmlText") as Label; if (xmlLabel != null && storage.ArchiveXml != null) { xmlLabel.Text = XmlUtils.GetXmlDocumentAsString(storage.ArchiveXml, true); } Label stsLabel = e.Row.FindControl("ServerTranseferSyntax") as Label; if (stsLabel != null && storage.ServerTransferSyntaxKey != null) { ServerTransferSyntaxAdaptor adaptor = new ServerTransferSyntaxAdaptor(); ServerTransferSyntax sts = adaptor.Get(storage.ServerTransferSyntaxKey); if (sts != null) { stsLabel.Text = sts.Description; } } } }