private DataGridColumn ColumnFromContainer(DataGridColumnHeader container)
        {
            Debug.Assert(HeaderCollection != null, "This is a helper method for preparing and clearing a container; if it's called we must have a valid ItemSource");

            int index = ItemContainerGenerator.IndexFromContainer(container);

            return(HeaderCollection.ColumnFromIndex(index));
        }