Exemplo n.º 1
0
 public void AddAt(int index, ItemsViewColumn column)
 {
     if (column == null)
     {
         throw new ArgumentNullException("column");
     }
     if (index == -1)
     {
         this.columns.Add(column);
     }
     else
     {
         this.columns.Insert(index, column);
     }
     column.SetOwner(this.owner);
     if (this.marked)
     {
         ((IStateManager)column).TrackViewState();
     }
     this.OnColumnsChanged();
 }
Exemplo n.º 2
0
 public void Add(ItemsViewColumn column)
 {
     this.AddAt(-1, column);
 }