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); } }
protected override void HandleColumnRemoved(object sender, ColumnEventArgs e) { base.HandleColumnRemoved(sender, e); if (e.Column.SortIcon != SortIcon.None) { UpdateSortColumn(e.Column); } }
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); } }
protected virtual void HandleColumnRemoved(object sender, ColumnEventArgs e) { UnhookColumn(e.Column); }
protected virtual void HandleColumnAdded(object sender, ColumnEventArgs e) { HookColumn(e.Column); }