private static void InitializeColumns(BaseViewer oViewer, string columnsXml)
 {
     oViewer.Columns = new List<Column>();
     if (!string.IsNullOrEmpty(columnsXml))
     {
         XmlDocument doc = new XmlDocument();
         doc.LoadXml(columnsXml);
         XmlNodeList columnNodes = doc.DocumentElement.SelectNodes("Column");
         for (int i = 0; i < columnNodes.Count; i++)
         {
             Column column = new Column
             {
                 Name = columnNodes[i].Attributes["name"].Value,
                 Header = columnNodes[i].InnerText
             };
             oViewer.Columns.Add(column);
         }
     }
 }
 private static void InitializeColumnsOld(BaseViewer baseViewer)
 {
     var columns = baseViewer.getParameter("columns");
     if (!string.IsNullOrEmpty(columns))
     {
         var cols = columns.Split(',');
         foreach (var col in cols)
         {
             var c = new Column()
                            {
                                Name = col,
                                Header = col
                            };
             baseViewer.Columns.Add(c);
         }
     }
 }