public void SetMemoryItem(MemoryItem memoryItem) { this.memoryItem = memoryItem; InitializeRows(); this.Rows[0].Cells[0].Value = memoryItem.TagListAsString(); this.Rows[1].Cells[0].Value = memoryItem.InsertionTime.ToString(); string memoryValueString = "<Not displayable>"; if (memoryItem is StringMemoryItem) { memoryValueString = (string)memoryItem.GetContent(); } this.Rows[2].Cells[0].Value = memoryValueString; }