src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     The column order is being changed.
/// </summary>
/// <param name="oldOrder">The old order. Acts as a base order to determine new order</param>
/// <param name="newOrder">The new order. Compare columns to old order to deduce current display order.</param>
/// <param name="updateHeaderControl">Set to true if the headers should be updated during this function</param>
/// <returns>Return true to allow the change, false to block it</returns>
The column order is being changed.
The column order is being changed .
protected virtual bool OnOrderChange(int[] oldOrder, int[] newOrder, bool updateHeaderControl)
        {
            if (myAssociatedControl != null)
            {
                return myAssociatedControl.ChangeColumnOrder(oldOrder, newOrder, updateHeaderControl);
            }
            return true;
        }
protected virtual bool OnOrderChange ( int [ ] oldOrder , int [ ] newOrder , bool updateHeaderControl ) { if ( myAssociatedControl != null ) { return myAssociatedControl . ChangeColumnOrder ( oldOrder , newOrder , updateHeaderControl ) ; } return true ; }
The column order is being changed.
The column order is being changed .
Return true to allow the change, false to block it
Return true to allow the change false to block it
oldOrder
int[]
The old order. Acts as a base order to determine new order
The old order . Acts as a base order to determine new order
newOrder
int[]
The new order. Compare columns to old order to deduce current display order.
The new order . Compare columns to old order to deduce current display order .
updateHeaderControl
bool
Set to true if the headers should be updated during this function
Set to true if the headers should be updated during this function