示例#1
0
 private static ColumnCollection CloneColumns(GridPanel panel)
 {
     ColumnCollection columns = new ColumnCollection(panel, (int) panel.Columns.DefaultSize);
     columns.Indent = panel.Columns.Indent;
     using (columns.DeferNotifications())
     {
         foreach (Column column in panel.Columns)
         {
             columns.Add(column);
             column.List = panel.Columns;
         }
     }
     return columns;
 }