3 types derived from DataGridColumn
PresentationFramework (3)
System\Windows\Controls\DataGridBoundColumn.cs (1)
14public abstract class DataGridBoundColumn : DataGridColumn
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
15public class DataGridComboBoxColumn : DataGridColumn
System\Windows\Controls\DataGridTemplateColumn.cs (1)
14public class DataGridTemplateColumn : DataGridColumn
412 references to DataGridColumn
PresentationFramework (412)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
150DataGridColumn dataGridColumn = this.OwningDataGrid.Columns[column]; 379internal void RaiseAutomationCellInvokeEvents(DataGridColumn column, DataGridRow row)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
24public DataGridCellItemAutomationPeer(object item, DataGridColumn dataGridColumn) : base() 887internal DataGridColumn Column 938private DataGridColumn _column;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (3)
17public DataGridColumnHeaderItemAutomationPeer(object item, DataGridColumn column, DataGridColumnHeadersPresenterAutomationPeer peer) 232internal DataGridColumn Column 248DataGridColumn _column;
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (4)
88DataGridColumn dataItem; 95dataItem = item as DataGridColumn; 256DataGridColumn dataGridColumn = column as DataGridColumn;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (7)
141IList<DataGridColumn> columns = OwningDataGrid.Columns; 381DataGridColumn column = dataGrid.ColumnFromDisplayIndex(i); 438DataGridColumn column = null; 445column = childItem as DataGridColumn; 462internal DataGridCellItemAutomationPeer GetOrCreateCellItemPeer(DataGridColumn column) 474private DataGridCellItemAutomationPeer GetOrCreateCellItemPeer(DataGridColumn column, bool addParentInfo) 532IList<DataGridColumn> columns = OwningDataGrid.Columns;
System\Windows\Controls\DataGrid.cs (62)
109public ObservableCollection<DataGridColumn> Columns 283DataGridColumn column = (DataGridColumn)list[i]; 314var column = (DataGridColumn)list[i]; 327foreach (DataGridColumn column in columns) 380public DataGridColumn ColumnFromDisplayIndex(int displayIndex) 422internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex) 610else if ((e.Property == DataGridColumn.VisibilityProperty) || (e.Property == DataGridColumn.WidthProperty) || (e.Property == DataGridColumn.DisplayIndexProperty)) 656internal void UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex) 1565public void ScrollIntoView(object item, DataGridColumn column) 1571private void ScrollIntoView(ItemInfo info, DataGridColumn column) 1615ScrollCellIntoView((ItemInfo)arguments[0], (DataGridColumn)arguments[1]); 1619ScrollColumnIntoView((DataGridColumn)arguments[1]); 1630private void ScrollColumnIntoView(DataGridColumn column) 1644private void ScrollCellIntoView(ItemInfo info, DataGridColumn column) 1766DataGridColumn column = cell.Column; 2843public DataGridColumn CurrentColumn 2845get { return (DataGridColumn)GetValue(CurrentColumnProperty); } 2853DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2859DataGridColumn newColumn = (DataGridColumn)e.NewValue; 3080internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 5063DataGridColumn anchorColumn = _selectionAnchor.Value.Column; 5478DataGridColumn column = CurrentColumn; 5692DataGridColumn column = ColumnFromDisplayIndex(nextDisplayIndex); 5738DataGridColumn column = ColumnFromDisplayIndex(nextDisplayIndex); 5843DataGridColumn nextColumn = ColumnFromDisplayIndex(nextDisplayIndex); 5982DataGridColumn column = currentCellContainer.Column; 6097DataGridColumn column = ColumnFromDisplayIndex(homeKey ? InternalColumns.FirstVisibleDisplayIndex : InternalColumns.LastVisibleDisplayIndex); 6145DataGridColumn currentColumn = CurrentColumn; 6211DataGridColumn currentColumn = CurrentColumn; 6740private CellAutomationValueHolder GetCellAutomationValueHolder(object item, DataGridColumn column) 6756internal string GetCellAutomationValue(object item, DataGridColumn column) 6762internal object GetCellClipboardValue(object item, DataGridColumn column) 6768internal void SetCellAutomationValue(object item, DataGridColumn column, string value) 6773internal void SetCellClipboardValue(object item, DataGridColumn column, object value) 6778private void SetCellValue(object item, DataGridColumn column, object value, bool clipboard) 6835foreach (KeyValuePair<DataGridColumn, CellAutomationValueHolder> kvp in _editingCellAutomationValueHolders) 6856public CellAutomationValueHolder(object item, DataGridColumn column) 6861private void Initialize(object item, DataGridColumn column) 6882DataGridColumn column = (_cell != null) ? _cell.Column : _column; 7015private DataGridColumn _column; 7035internal DataGridCell TryFindCell(ItemInfo info, DataGridColumn column) 7048internal DataGridCell TryFindCell(object item, DataGridColumn column) 7131internal void PerformSort(DataGridColumn sortColumn) 7166private void PrepareForSort(DataGridColumn sortColumn) 7175foreach (DataGridColumn column in Columns) 7192private void DefaultSort(DataGridColumn column, bool clearExistingSortDescriptions) 7599foreach (DataGridColumn column in Columns) 7854public static Collection<DataGridColumn> GenerateColumns(IItemProperties itemProperties) 7858Collection<DataGridColumn> columnCollection = new Collection<DataGridColumn>(); 7876Collection<DataGridColumn> columnCollection) 7885DataGridColumn dataGridColumn = DataGridColumn.CreateDefaultColumn(itemProperty); 8356DataGridColumn column = ColumnFromDisplayIndex(i); 8378DataGridColumn column = ColumnFromDisplayIndex(i); 8673private Dictionary<DataGridColumn, CellAutomationValueHolder> _editingCellAutomationValueHolders 8674= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (5)
24public DataGridAutoGeneratingColumnEventArgs(string propertyName, Type propertyType, DataGridColumn column) : 29internal DataGridAutoGeneratingColumnEventArgs(DataGridColumn column, ItemPropertyInfo itemPropertyInfo) : 35DataGridColumn column, 53public DataGridColumn Column 135private DataGridColumn _column;
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
18public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs) 37public DataGridColumn Column 59private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridBoundColumn.cs (2)
132new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 152new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridCell.cs (24)
101DataGridColumn column = dataGrid.Columns[index]; 157public DataGridColumn Column 159get { return (DataGridColumn)GetValue(ColumnProperty); } 167DependencyProperty.RegisterReadOnly("Column", typeof(DataGridColumn), typeof(DataGridCell), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnColumnChanged))); 183cell.OnColumnChanged((DataGridColumn)e.OldValue, (DataGridColumn)e.NewValue); 196protected virtual void OnColumnChanged(DataGridColumn oldColumn, DataGridColumn newColumn) 239DataGridColumn column = d as DataGridColumn; 249if (e.Property == DataGridColumn.WidthProperty) 253else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 257else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 261else if (e.Property == DataGridColumn.DisplayIndexProperty) 300DataGridColumn.CellStyleProperty, 376var column = Column; 499var column = Column; 532var column = cell.Column; 541DataGridColumn.IsReadOnlyProperty, 581DataGridColumn column = Column; 595DataGridColumn column = Column; 610DataGridColumn column = Column; 988Column.SetCurrentValueInternal(DataGridColumn.WidthProperty, updatedWidth); 1033var column = Column;
System\Windows\Controls\DataGridCellClipboardEventArgs.cs (3)
18public DataGridCellClipboardEventArgs(object item, DataGridColumn column, object content) 45public DataGridColumn Column 52private DataGridColumn _column;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
19public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 39public DataGridColumn Column 69private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridCellInfo.cs (7)
21public DataGridCellInfo(object item, DataGridColumn column) 52internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 63internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 103private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 115internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 140public DataGridColumn Column 279private DataGridColumn _column;
System\Windows\Controls\DataGridCellsPanel.cs (13)
111DataGridColumn column = cell.Column; 134DataGridColumn column = cell.Column; 266DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 535DataGridColumn column, 555DataGridColumn column, 835DataGridColumn column = parentDataGrid.Columns[i]; 961DataGridColumn column = dataGrid.ColumnFromDisplayIndex(displayIndex); 1032ObservableCollection<DataGridColumn> columns = parentDataGrid.Columns; 1062DataGridColumn column = columnProvider.Column; 1414DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 1894private static double GetColumnEstimatedMeasureWidth(DataGridColumn column, double averageColumnWidth) 2265DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 2384private ObservableCollection<DataGridColumn> Columns
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
147new FrameworkPropertyMetadata(false, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\DataGridClipboardCellContent.cs (3)
18public DataGridClipboardCellContent(object item, DataGridColumn column, object content) 36public DataGridColumn Column 114private DataGridColumn _column;
System\Windows\Controls\DataGridColumn.cs (68)
34DependencyProperty.Register("Header", typeof(object), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged))); 49DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle)); 53var column = d as DataGridColumn; 75DependencyProperty.Register("HeaderStringFormat", typeof(string), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 90DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 105DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 124DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle)); 128var column = d as DataGridColumn; 150DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(false, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly)); 154var column = d as DataGridColumn; 191typeof(DataGridColumn), 222DataGridColumn column = (DataGridColumn)d; 300typeof(DataGridColumn), 312DataGridColumn column = (DataGridColumn)d; 339typeof(DataGridColumn), 351DataGridColumn column = (DataGridColumn)d; 389var column = d as DataGridColumn; 417var column = d as DataGridColumn; 431var column = d as DataGridColumn; 477DependencyProperty.RegisterReadOnly("ActualWidth", typeof(double), typeof(DataGridColumn), new FrameworkPropertyMetadata(0.0, null, new CoerceValueCallback(OnCoerceActualWidth))); 483DataGridColumn column = ((DataGridColumn)d); 775DependencyProperty.RegisterAttached("OriginalValue", typeof(object), typeof(DataGridColumn), new FrameworkPropertyMetadata(null)); 786((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 794((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 802((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 871DataGridColumn column = (DataGridColumn)d; 899Debug.Assert(d is DataGridColumn, "d should be a DataGridColumn"); 901((DataGridColumn)d).NotifyPropertyChanged(e.Property.Name); 965typeof(DataGridColumn), 974DataGridColumn column = (DataGridColumn)d; 990((DataGridColumn)d).NotifyPropertyChanged( 1013typeof(DataGridColumn), 1032typeof(DataGridColumn), 1053var column = d as DataGridColumn; 1089((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1100typeof(DataGridColumn), 1119((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1130typeof(DataGridColumn), 1152internal static DataGridColumn CreateDefaultColumn(ItemPropertyInfo itemProperty) 1156DataGridColumn dataGridColumn = null; 1244typeof(DataGridColumn), 1268((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1280DataGridColumn column = (DataGridColumn)d; 1305DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder))); 1318var column = d as DataGridColumn; 1331DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle)); 1344var column = d as DataGridColumn; 1464DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize))); 1477var column = d as DataGridColumn; 1507typeof(DataGridColumn), 1532((DataGridColumn)d).NotifyPropertyChanged(
System\Windows\Controls\DataGridColumnCollection.cs (99)
17internal class DataGridColumnCollection : ObservableCollection<DataGridColumn> 37protected override void InsertItem(int index, DataGridColumn item) 55item.CoerceValue(DataGridColumn.IsFrozenProperty); 58protected override void SetItem(int index, DataGridColumn item) 81item.CoerceValue(DataGridColumn.IsFrozenProperty); 165if (e.Property == DataGridColumn.DisplayIndexProperty) 167OnColumnDisplayIndexChanged((DataGridColumn)d, (int)e.OldValue, (int)e.NewValue); 168if (((DataGridColumn)d).IsVisible) 173else if (e.Property == DataGridColumn.WidthProperty) 175if (((DataGridColumn)d).IsVisible) 185else if (e.Property == DataGridColumn.VisibilityProperty) 225internal DataGridColumn ColumnFromDisplayIndex(int displayIndex) 261private int CoerceDefaultDisplayIndex(DataGridColumn column) 275private int CoerceDefaultDisplayIndex(DataGridColumn column, int newDisplayIndex) 277if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 300private void OnColumnDisplayIndexChanged(DataGridColumn column, int oldDisplayIndex, int newDisplayIndex) 407DataGridColumn column; 420column = (DataGridColumn)newColumns[0]; 460private void InitializeDisplayIndexMap(DataGridColumn changingColumn, int oldDisplayIndex, out int resultDisplayIndex) 484DataGridColumn currentColumn = this[columnIndex]; 510DataGridColumn currentColumn = this[columnIndex]; 512bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 553DataGridColumn column; 583DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Remove, removedDisplayIndex, (DataGridColumn)oldColumns[0], -1); 599DataGridColumn oldColumn = (DataGridColumn)oldColumns[0]; 600DataGridColumn newColumn = (DataGridColumn)newColumns[0]; 630var column = (DataGridColumn)oldColumns[i]; 638column.ClearValue(DataGridColumn.DisplayIndexProperty); 651private bool IsDisplayIndexValid(DataGridColumn column, int displayIndex, bool isAdding) 654if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 707internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex) 715internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex, bool isAdding) 793private bool HasVisibleStarColumnsInternal(DataGridColumn ignoredColumn, out double perStarWidth) 797foreach (DataGridColumn column in this) 834private bool HasVisibleStarColumnsInternal(DataGridColumn ignoredColumn) 875foreach (DataGridColumn column in this) 901List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 902List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>(); 909foreach (DataGridColumn column in this) 939DataGridColumn column = unResolvedColumns[i]; 962DataGridColumn column = unResolvedColumns[i]; 990DataGridColumn column = partialResolvedColumns[i]; 1003DataGridColumn column = partialResolvedColumns[i]; 1013DataGridColumn column = unResolvedColumns[i]; 1084foreach (DataGridColumn column in this) 1159foreach (DataGridColumn column in this) 1179foreach (DataGridColumn column in this) 1202internal void RedistributeColumnWidthsOnMinWidthChangeOfColumn(DataGridColumn changedColumn, double oldMinWidth) 1245internal void RedistributeColumnWidthsOnMaxWidthChangeOfColumn(DataGridColumn changedColumn, double oldMaxWidth) 1287internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn, DataGridLength oldWidth) 1351foreach (DataGridColumn column in this) 1373private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn, DataGridLength oldWidth) 1403foreach (DataGridColumn column in this) 1439foreach (DataGridColumn column in this) 1469_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>(); 1470foreach (DataGridColumn column in this) 1483foreach (DataGridColumn column in this) 1498internal void RecomputeColumnWidthsOnColumnResize(DataGridColumn resizingColumn, double horizontalChange, bool retainAuto) 1549DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1592private static bool CanColumnParticipateInResize(DataGridColumn column) 1606DataGridColumn column = ColumnFromDisplayIndex(i); 1659DataGridColumn column = ColumnFromDisplayIndex(i); 1690DataGridColumn column = ColumnFromDisplayIndex(i); 1715DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1746DataGridColumn resizingColumn = ColumnFromDisplayIndex(resizingColumnIndex); 1755DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1775DataGridColumn column = ColumnFromDisplayIndex(i); 1800DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1856DataGridColumn column = ColumnFromDisplayIndex(i); 1908DataGridColumn column = ColumnFromDisplayIndex(i); 1927private static void SetResizedColumnWidth(DataGridColumn column, double widthDelta, bool retainAuto) 1957private double GiveAwayWidthToColumns(DataGridColumn ignoredColumn, double giveAwayWidth) 1968private double GiveAwayWidthToColumns(DataGridColumn ignoredColumn, double giveAwayWidth, bool recomputeStars) 1979foreach (DataGridColumn column in this) 2015private double GiveAwayWidthToNonStarColumns(DataGridColumn ignoredColumn, double giveAwayWidth) 2051DataGridColumn ignoredColumn, 2056foreach (DataGridColumn column in this) 2090private void GiveAwayWidthToEveryNonStarColumn(DataGridColumn ignoredColumn, double perColumnGiveAwayWidth) 2092foreach (DataGridColumn column in this) 2121foreach (DataGridColumn column in this) 2159DataGridColumn resizingColumn = ColumnFromDisplayIndex(resizingColumnIndex); 2172foreach (DataGridColumn column in this) 2221private double TakeAwayWidthFromColumns(DataGridColumn ignoredColumn, double takeAwayWidth, bool widthAlreadyUtilized) 2231private double TakeAwayWidthFromColumns(DataGridColumn ignoredColumn, double takeAwayWidth, bool widthAlreadyUtilized, double totalAvailableWidth) 2245private double TakeAwayWidthFromStarColumns(DataGridColumn ignoredColumn, double takeAwayWidth) 2251foreach (DataGridColumn column in this) 2278private double TakeAwayWidthFromNonStarColumns(DataGridColumn ignoredColumn, double takeAwayWidth) 2314DataGridColumn ignoredColumn, 2319foreach (DataGridColumn column in this) 2353DataGridColumn ignoredColumn, 2356foreach (DataGridColumn column in this) 2493DataGridColumn column = ColumnFromDisplayIndex(i); 2513DataGridColumn column = ColumnFromDisplayIndex(i); 2539private Dictionary<DataGridColumn, DataGridLength> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridColumnEventArgs.cs (3)
15public DataGridColumnEventArgs(DataGridColumn column) 23public DataGridColumn Column 28private DataGridColumn _column;
System\Windows\Controls\DataGridColumnHeaderCollection.cs (10)
18public DataGridColumnHeaderCollection(ObservableCollection<DataGridColumn> columns) 28public DataGridColumn ColumnFromIndex(int index) 44internal void NotifyHeaderPropertyChanged(DataGridColumn column, DependencyPropertyChangedEventArgs e) 46Debug.Assert(e.Property == DataGridColumn.HeaderProperty, "We only want to know about the header property changing"); 82public ColumnHeaderCollectionEnumerator(ObservableCollection<DataGridColumn> columns) 101DataGridColumn column = _columns[_current]; 185private ObservableCollection<DataGridColumn> _columns; 248DataGridColumn column = columns[i] as DataGridColumn; 265private ObservableCollection<DataGridColumn> _columns;
System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (1)
18public DataGridColumnReorderingEventArgs(DataGridColumn dataGridColumn)
System\Windows\Controls\DataGridComboBoxColumn.cs (3)
369ComboBox.ItemsSourceProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(null, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 386ComboBox.DisplayMemberPathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 401ComboBox.SelectedValuePathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\DataGridHelper.cs (1)
240DataGridColumn column = cell.Column;
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
31new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
20public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 31public DataGridColumn Column 60private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridRow.cs (1)
597protected internal virtual void OnColumnsChanged(ObservableCollection<DataGridColumn> columns, NotifyCollectionChangedEventArgs e)
System\Windows\Controls\DataGridSortingEventArgs.cs (1)
12public DataGridSortingEventArgs(DataGridColumn column)
System\Windows\Controls\DataGridTemplateColumn.cs (5)
46return DataGridColumn.OnCoerceCanUserSort(d, baseValue); 69new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 87new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 106new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 125new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridTextColumn.cs (5)
299new FrameworkPropertyMetadata(SystemFonts.MessageFontFamily, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 320new FrameworkPropertyMetadata(SystemFonts.ThemeMessageFontSize, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 343new FrameworkPropertyMetadata(SystemFonts.MessageFontStyle, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 364new FrameworkPropertyMetadata(SystemFonts.MessageFontWeight, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 385new FrameworkPropertyMetadata(SystemColors.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\IProvideDataGridColumn.cs (1)
12DataGridColumn Column
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
117ObservableCollection<DataGridColumn> columns = dataGridOwner.Columns; 248ObservableCollection<DataGridColumn> columns = Columns; 339protected internal virtual void OnColumnsChanged(ObservableCollection<DataGridColumn> columns, NotifyCollectionChangedEventArgs e) 381if (e.Property == DataGridColumn.WidthProperty || 382e.Property == DataGridColumn.DisplayIndexProperty) 384if (((DataGridColumn)d).IsVisible) 386InvalidateDataGridCellsPanelMeasureAndArrangeImpl((e.Property == DataGridColumn.WidthProperty)/*invalidateMeasureUptoRowsPresenter*/); 390e.Property == DataGridColumn.VisibilityProperty || 618private ObservableCollection<DataGridColumn> Columns
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (34)
56public DataGridColumn Column 101internal void PrepareColumnHeader(object item, DataGridColumn column) 168DataGridColumn column = header.Column; 187DataGridColumn column = header.Column; 325DataGridColumn resizingColumn = header.Column; 398DataGridColumn column = d as DataGridColumn; 405if (e.Property == DataGridColumn.WidthProperty) 409else if (e.Property == DataGridColumn.HeaderProperty || e.Property == ContentProperty) 413else if (e.Property == DataGridColumn.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 417else if (e.Property == DataGridColumn.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 421else if (e.Property == DataGridColumn.HeaderStringFormatProperty || e.Property == ContentStringFormatProperty) 425else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 433else if (e.Property == DataGridColumn.DisplayIndexProperty) 442else if (e.Property == DataGridColumn.CanUserSortProperty) 446else if (e.Property == DataGridColumn.SortDirectionProperty) 450else if (e.Property == DataGridColumn.IsFrozenProperty) 454else if (e.Property == DataGridColumn.CanUserResizeProperty) 458else if (e.Property == DataGridColumn.VisibilityProperty) 496DataGridColumn column = dataGridOwner.ColumnFromDisplayIndex(index); 582DataGridColumn column = dataGrid.ColumnFromDisplayIndex(index); 611DataGridColumn.HeaderProperty); 636DataGridColumn.HeaderTemplateProperty); 650DataGridColumn.HeaderTemplateSelectorProperty); 664DataGridColumn.HeaderStringFormatProperty); 673DataGridColumn column = columnHeader.Column; 695DataGridColumn.HeaderStyleProperty, 783DataGridColumn column = columnHeader.Column; 815DataGridColumn column = header.Column; 831DataGridColumn column = header.Column; 889DataGridColumn column = header.Column; 1086DataGridColumn IProvideDataGridColumn.Column 1110DataGridColumn column = Column; 1134private DataGridColumn _column;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (13)
226DataGridColumn column = ColumnFromContainer(header); 261private DataGridColumn ColumnFromContainer(DataGridColumnHeader container) 286DataGridColumn column = d as DataGridColumn; 289if (e.Property == DataGridColumn.WidthProperty || 290e.Property == DataGridColumn.DisplayIndexProperty) 298e.Property == DataGridColumn.VisibilityProperty || 330if (e.Property == DataGridColumn.HeaderProperty) 514DataGridColumn column = header.Column; 766DataGridColumn column = _draggingSrcColumnHeader.Column; 858DataGridColumn column = _draggingSrcColumnHeader.Column; 912private static double GetColumnEstimatedWidth(DataGridColumn column, double averageColumnWidth) 958DataGridColumn column = dataGrid.ColumnFromDisplayIndex(i);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
1117internal void OnColumnsChanged(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex, IList selectedRows) 1189private void OnRemoveColumn(int columnIndex, DataGridColumn oldColumn) 1228private void OnReplaceColumn(int columnIndex, DataGridColumn oldColumn, IList selectedRows) 1312internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1324protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1336private DataGridColumn _removedColumn; 1613DataGridColumn column = owner.ColumnFromDisplayIndex(columnIndex); 1641DataGridColumn column = _owner.ColumnFromDisplayIndex(columnIndex); 1651protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)