Example #1
0
        protected override void HandleColumnRemoved(object sender, ColumnEventArgs e)
        {
            base.HandleColumnRemoved(sender, e);
            HeaderSection section = (HeaderSection)_headerMap [e.Column];

            if (section != null)
            {
                _headerMap.Remove(e.Column);
                _headerControl.Sections.Remove(section);
            }

            if (e.Column.SizeToContent)
            {
                lock ( _sizeToContentItemWidths )
                {
                    _sizeToContentItemWidths.Remove(e.Column);
                }
                _sizeToContentColumnCount--;
            }
            if (e.Column.AutoSize)
            {
                _autoSizeColumnCount--;
            }
            if (!_columnCollection.BatchUpdating)
            {
                ProcessColumnUpdate(false);
            }
        }
Example #2
0
 protected override void HandleColumnRemoved(object sender, ColumnEventArgs e)
 {
     base.HandleColumnRemoved(sender, e);
     if (e.Column.SortIcon != SortIcon.None)
     {
         UpdateSortColumn(e.Column);
     }
 }
Example #3
0
 protected override void HandleColumnAdded(object sender, ColumnEventArgs e)
 {
     base.HandleColumnAdded(sender, e);
     if (e.Column.SizeToContent)
     {
         _sizeToContentColumnCount++;
     }
     else if (e.Column.AutoSize)
     {
         _autoSizeColumnCount++;
     }
     if (!_columnCollection.BatchUpdating)
     {
         ProcessColumnUpdate(false);
     }
 }
Example #4
0
 protected virtual void HandleColumnRemoved(object sender, ColumnEventArgs e)
 {
     UnhookColumn(e.Column);
 }
Example #5
0
 protected virtual void HandleColumnAdded(object sender, ColumnEventArgs e)
 {
     HookColumn(e.Column);
 }