Exemplo n.º 1
0
 /// <summary>
 /// Retire un Column
 /// </summary>
 /// <param name="cell"></param>
 public void RemoveColumn(GrilleColumn column, bool sort = true)
 {
     column.isModified = true;
     columnListChangeHandler.AddDeleted(column, sort);
     foreach (GrilleColumn child in columnListChangeHandler.Items)
     {
         if (child.position > column.position)
         {
             child.position   = child.position - 1;
             child.isModified = true;
             columnListChangeHandler.AddUpdated(child, false);
         }
     }
     PrimaryColumnsDataSource.Remove(column);
     RelatedColumnsDataSource.Remove(column);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Oublier un Column
 /// </summary>
 /// <param name="cell"></param>
 public void ForgetColumn(GrilleColumn column, bool sort = true)
 {
     columnListChangeHandler.forget(column, sort);
     PrimaryColumnsDataSource.Remove(column);
     RelatedColumnsDataSource.Remove(column);
 }