3 types derived from DataGridColumn
PresentationFramework (3)
System\Windows\Controls\DataGridBoundColumn.cs (1)
20public abstract class DataGridBoundColumn : DataGridColumn
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
19public class DataGridComboBoxColumn : DataGridColumn
System\Windows\Controls\DataGridTemplateColumn.cs (1)
18public class DataGridTemplateColumn : DataGridColumn
412 references to DataGridColumn
PresentationFramework (412)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
155DataGridColumn dataGridColumn = this.OwningDataGrid.Columns[column]; 384internal void RaiseAutomationCellInvokeEvents(DataGridColumn column, DataGridRow row)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
30public DataGridCellItemAutomationPeer(object item, DataGridColumn dataGridColumn) : base() 893internal DataGridColumn Column 944private DataGridColumn _column;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (3)
23public DataGridColumnHeaderItemAutomationPeer(object item, DataGridColumn column, DataGridColumnHeadersPresenterAutomationPeer peer) 238internal DataGridColumn Column 254DataGridColumn _column;
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (4)
90DataGridColumn dataItem; 97dataItem = item as DataGridColumn; 258DataGridColumn dataGridColumn = column as DataGridColumn;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (7)
146IList<DataGridColumn> columns = OwningDataGrid.Columns; 386DataGridColumn column = dataGrid.ColumnFromDisplayIndex(i); 443DataGridColumn column = null; 450column = childItem as DataGridColumn; 467internal DataGridCellItemAutomationPeer GetOrCreateCellItemPeer(DataGridColumn column) 479private DataGridCellItemAutomationPeer GetOrCreateCellItemPeer(DataGridColumn column, bool addParentInfo) 537IList<DataGridColumn> columns = OwningDataGrid.Columns;
System\Windows\Controls\DataGrid.cs (62)
112public ObservableCollection<DataGridColumn> Columns 286DataGridColumn column = (DataGridColumn)list[i]; 317var column = (DataGridColumn)list[i]; 330foreach (DataGridColumn column in columns) 383public DataGridColumn ColumnFromDisplayIndex(int displayIndex) 425internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex) 613else if ((e.Property == DataGridColumn.VisibilityProperty) || (e.Property == DataGridColumn.WidthProperty) || (e.Property == DataGridColumn.DisplayIndexProperty)) 659internal void UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex) 1568public void ScrollIntoView(object item, DataGridColumn column) 1574private void ScrollIntoView(ItemInfo info, DataGridColumn column) 1618ScrollCellIntoView((ItemInfo)arguments[0], (DataGridColumn)arguments[1]); 1622ScrollColumnIntoView((DataGridColumn)arguments[1]); 1633private void ScrollColumnIntoView(DataGridColumn column) 1647private void ScrollCellIntoView(ItemInfo info, DataGridColumn column) 1769DataGridColumn column = cell.Column; 2846public DataGridColumn CurrentColumn 2848get { return (DataGridColumn)GetValue(CurrentColumnProperty); } 2856DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2862DataGridColumn newColumn = (DataGridColumn)e.NewValue; 3083internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 5066DataGridColumn anchorColumn = _selectionAnchor.Value.Column; 5481DataGridColumn column = CurrentColumn; 5695DataGridColumn column = ColumnFromDisplayIndex(nextDisplayIndex); 5741DataGridColumn column = ColumnFromDisplayIndex(nextDisplayIndex); 5846DataGridColumn nextColumn = ColumnFromDisplayIndex(nextDisplayIndex); 5985DataGridColumn column = currentCellContainer.Column; 6100DataGridColumn column = ColumnFromDisplayIndex(homeKey ? InternalColumns.FirstVisibleDisplayIndex : InternalColumns.LastVisibleDisplayIndex); 6148DataGridColumn currentColumn = CurrentColumn; 6214DataGridColumn currentColumn = CurrentColumn; 6743private CellAutomationValueHolder GetCellAutomationValueHolder(object item, DataGridColumn column) 6759internal string GetCellAutomationValue(object item, DataGridColumn column) 6765internal object GetCellClipboardValue(object item, DataGridColumn column) 6771internal void SetCellAutomationValue(object item, DataGridColumn column, string value) 6776internal void SetCellClipboardValue(object item, DataGridColumn column, object value) 6781private void SetCellValue(object item, DataGridColumn column, object value, bool clipboard) 6838foreach (KeyValuePair<DataGridColumn, CellAutomationValueHolder> kvp in _editingCellAutomationValueHolders) 6859public CellAutomationValueHolder(object item, DataGridColumn column) 6864private void Initialize(object item, DataGridColumn column) 6885DataGridColumn column = (_cell != null) ? _cell.Column : _column; 7018private DataGridColumn _column; 7038internal DataGridCell TryFindCell(ItemInfo info, DataGridColumn column) 7051internal DataGridCell TryFindCell(object item, DataGridColumn column) 7134internal void PerformSort(DataGridColumn sortColumn) 7169private void PrepareForSort(DataGridColumn sortColumn) 7178foreach (DataGridColumn column in Columns) 7195private void DefaultSort(DataGridColumn column, bool clearExistingSortDescriptions) 7602foreach (DataGridColumn column in Columns) 7857public static Collection<DataGridColumn> GenerateColumns(IItemProperties itemProperties) 7861Collection<DataGridColumn> columnCollection = new Collection<DataGridColumn>(); 7879Collection<DataGridColumn> columnCollection) 7888DataGridColumn dataGridColumn = DataGridColumn.CreateDefaultColumn(itemProperty); 8359DataGridColumn column = ColumnFromDisplayIndex(i); 8381DataGridColumn column = ColumnFromDisplayIndex(i); 8676private Dictionary<DataGridColumn, CellAutomationValueHolder> _editingCellAutomationValueHolders 8677= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (5)
28public DataGridAutoGeneratingColumnEventArgs(string propertyName, Type propertyType, DataGridColumn column) : 33internal DataGridAutoGeneratingColumnEventArgs(DataGridColumn column, ItemPropertyInfo itemPropertyInfo) : 39DataGridColumn column, 57public DataGridColumn Column 139private DataGridColumn _column;
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
23public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs) 42public DataGridColumn Column 64private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridBoundColumn.cs (2)
138new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 158new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridCell.cs (24)
108DataGridColumn column = dataGrid.Columns[index]; 164public DataGridColumn Column 166get { return (DataGridColumn)GetValue(ColumnProperty); } 174DependencyProperty.RegisterReadOnly("Column", typeof(DataGridColumn), typeof(DataGridCell), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnColumnChanged))); 190cell.OnColumnChanged((DataGridColumn)e.OldValue, (DataGridColumn)e.NewValue); 203protected virtual void OnColumnChanged(DataGridColumn oldColumn, DataGridColumn newColumn) 246DataGridColumn column = d as DataGridColumn; 256if (e.Property == DataGridColumn.WidthProperty) 260else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 264else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 268else if (e.Property == DataGridColumn.DisplayIndexProperty) 307DataGridColumn.CellStyleProperty, 383var column = Column; 506var column = Column; 539var column = cell.Column; 548DataGridColumn.IsReadOnlyProperty, 588DataGridColumn column = Column; 602DataGridColumn column = Column; 617DataGridColumn column = Column; 995Column.SetCurrentValueInternal(DataGridColumn.WidthProperty, updatedWidth); 1040var column = Column;
System\Windows\Controls\DataGridCellClipboardEventArgs.cs (3)
23public DataGridCellClipboardEventArgs(object item, DataGridColumn column, object content) 50public DataGridColumn Column 57private DataGridColumn _column;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
24public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 44public DataGridColumn Column 74private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridCellInfo.cs (7)
26public DataGridCellInfo(object item, DataGridColumn column) 57internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 68internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 108private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 120internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 145public DataGridColumn Column 284private DataGridColumn _column;
System\Windows\Controls\DataGridCellsPanel.cs (13)
115DataGridColumn column = cell.Column; 138DataGridColumn column = cell.Column; 270DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 539DataGridColumn column, 559DataGridColumn column, 839DataGridColumn column = parentDataGrid.Columns[i]; 965DataGridColumn column = dataGrid.ColumnFromDisplayIndex(displayIndex); 1036ObservableCollection<DataGridColumn> columns = parentDataGrid.Columns; 1066DataGridColumn column = columnProvider.Column; 1418DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 1898private static double GetColumnEstimatedMeasureWidth(DataGridColumn column, double averageColumnWidth) 2269DataGridColumn column = parentDataGrid.ColumnFromDisplayIndex(i); 2388private ObservableCollection<DataGridColumn> Columns
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
151new FrameworkPropertyMetadata(false, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\DataGridClipboardCellContent.cs (3)
23public DataGridClipboardCellContent(object item, DataGridColumn column, object content) 41public DataGridColumn Column 119private DataGridColumn _column;
System\Windows\Controls\DataGridColumn.cs (68)
37DependencyProperty.Register("Header", typeof(object), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged))); 52DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle)); 56var column = d as DataGridColumn; 78DependencyProperty.Register("HeaderStringFormat", typeof(string), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 93DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 108DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged)); 127DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle)); 131var column = d as DataGridColumn; 153DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(false, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly)); 157var column = d as DataGridColumn; 194typeof(DataGridColumn), 225DataGridColumn column = (DataGridColumn)d; 303typeof(DataGridColumn), 315DataGridColumn column = (DataGridColumn)d; 342typeof(DataGridColumn), 354DataGridColumn column = (DataGridColumn)d; 392var column = d as DataGridColumn; 420var column = d as DataGridColumn; 434var column = d as DataGridColumn; 480DependencyProperty.RegisterReadOnly("ActualWidth", typeof(double), typeof(DataGridColumn), new FrameworkPropertyMetadata(0.0, null, new CoerceValueCallback(OnCoerceActualWidth))); 486DataGridColumn column = ((DataGridColumn)d); 778DependencyProperty.RegisterAttached("OriginalValue", typeof(object), typeof(DataGridColumn), new FrameworkPropertyMetadata(null)); 789((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 797((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 805((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 874DataGridColumn column = (DataGridColumn)d; 902Debug.Assert(d is DataGridColumn, "d should be a DataGridColumn"); 904((DataGridColumn)d).NotifyPropertyChanged(e.Property.Name); 968typeof(DataGridColumn), 977DataGridColumn column = (DataGridColumn)d; 993((DataGridColumn)d).NotifyPropertyChanged( 1016typeof(DataGridColumn), 1035typeof(DataGridColumn), 1056var column = d as DataGridColumn; 1092((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1103typeof(DataGridColumn), 1122((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1133typeof(DataGridColumn), 1155internal static DataGridColumn CreateDefaultColumn(ItemPropertyInfo itemProperty) 1159DataGridColumn dataGridColumn = null; 1247typeof(DataGridColumn), 1271((DataGridColumn)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 1283DataGridColumn column = (DataGridColumn)d; 1308DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder))); 1321var column = d as DataGridColumn; 1334DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle)); 1347var column = d as DataGridColumn; 1467DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize))); 1480var column = d as DataGridColumn; 1510typeof(DataGridColumn), 1535((DataGridColumn)d).NotifyPropertyChanged(
System\Windows\Controls\DataGridColumnCollection.cs (99)
21internal class DataGridColumnCollection : ObservableCollection<DataGridColumn> 41protected override void InsertItem(int index, DataGridColumn item) 59item.CoerceValue(DataGridColumn.IsFrozenProperty); 62protected override void SetItem(int index, DataGridColumn item) 85item.CoerceValue(DataGridColumn.IsFrozenProperty); 169if (e.Property == DataGridColumn.DisplayIndexProperty) 171OnColumnDisplayIndexChanged((DataGridColumn)d, (int)e.OldValue, (int)e.NewValue); 172if (((DataGridColumn)d).IsVisible) 177else if (e.Property == DataGridColumn.WidthProperty) 179if (((DataGridColumn)d).IsVisible) 189else if (e.Property == DataGridColumn.VisibilityProperty) 229internal DataGridColumn ColumnFromDisplayIndex(int displayIndex) 265private int CoerceDefaultDisplayIndex(DataGridColumn column) 279private int CoerceDefaultDisplayIndex(DataGridColumn column, int newDisplayIndex) 281if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 304private void OnColumnDisplayIndexChanged(DataGridColumn column, int oldDisplayIndex, int newDisplayIndex) 411DataGridColumn column; 424column = (DataGridColumn)newColumns[0]; 464private void InitializeDisplayIndexMap(DataGridColumn changingColumn, int oldDisplayIndex, out int resultDisplayIndex) 488DataGridColumn currentColumn = this[columnIndex]; 514DataGridColumn currentColumn = this[columnIndex]; 516bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 557DataGridColumn column; 587DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Remove, removedDisplayIndex, (DataGridColumn)oldColumns[0], -1); 603DataGridColumn oldColumn = (DataGridColumn)oldColumns[0]; 604DataGridColumn newColumn = (DataGridColumn)newColumns[0]; 634var column = (DataGridColumn)oldColumns[i]; 642column.ClearValue(DataGridColumn.DisplayIndexProperty); 655private bool IsDisplayIndexValid(DataGridColumn column, int displayIndex, bool isAdding) 658if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 711internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex) 719internal void ValidateDisplayIndex(DataGridColumn column, int displayIndex, bool isAdding) 797private bool HasVisibleStarColumnsInternal(DataGridColumn ignoredColumn, out double perStarWidth) 801foreach (DataGridColumn column in this) 838private bool HasVisibleStarColumnsInternal(DataGridColumn ignoredColumn) 879foreach (DataGridColumn column in this) 905List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 906List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>(); 913foreach (DataGridColumn column in this) 943DataGridColumn column = unResolvedColumns[i]; 966DataGridColumn column = unResolvedColumns[i]; 994DataGridColumn column = partialResolvedColumns[i]; 1007DataGridColumn column = partialResolvedColumns[i]; 1017DataGridColumn column = unResolvedColumns[i]; 1088foreach (DataGridColumn column in this) 1163foreach (DataGridColumn column in this) 1183foreach (DataGridColumn column in this) 1206internal void RedistributeColumnWidthsOnMinWidthChangeOfColumn(DataGridColumn changedColumn, double oldMinWidth) 1249internal void RedistributeColumnWidthsOnMaxWidthChangeOfColumn(DataGridColumn changedColumn, double oldMaxWidth) 1291internal void RedistributeColumnWidthsOnWidthChangeOfColumn(DataGridColumn changedColumn, DataGridLength oldWidth) 1355foreach (DataGridColumn column in this) 1377private void RedistributeColumnWidthsOnNonStarWidthChange(DataGridColumn changedColumn, DataGridLength oldWidth) 1407foreach (DataGridColumn column in this) 1443foreach (DataGridColumn column in this) 1473_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>(); 1474foreach (DataGridColumn column in this) 1487foreach (DataGridColumn column in this) 1502internal void RecomputeColumnWidthsOnColumnResize(DataGridColumn resizingColumn, double horizontalChange, bool retainAuto) 1553DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1596private static bool CanColumnParticipateInResize(DataGridColumn column) 1610DataGridColumn column = ColumnFromDisplayIndex(i); 1663DataGridColumn column = ColumnFromDisplayIndex(i); 1694DataGridColumn column = ColumnFromDisplayIndex(i); 1719DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1750DataGridColumn resizingColumn = ColumnFromDisplayIndex(resizingColumnIndex); 1759DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1779DataGridColumn column = ColumnFromDisplayIndex(i); 1804DataGridColumn column = ColumnFromDisplayIndex(resizingColumnIndex); 1860DataGridColumn column = ColumnFromDisplayIndex(i); 1912DataGridColumn column = ColumnFromDisplayIndex(i); 1931private static void SetResizedColumnWidth(DataGridColumn column, double widthDelta, bool retainAuto) 1961private double GiveAwayWidthToColumns(DataGridColumn ignoredColumn, double giveAwayWidth) 1972private double GiveAwayWidthToColumns(DataGridColumn ignoredColumn, double giveAwayWidth, bool recomputeStars) 1983foreach (DataGridColumn column in this) 2019private double GiveAwayWidthToNonStarColumns(DataGridColumn ignoredColumn, double giveAwayWidth) 2055DataGridColumn ignoredColumn, 2060foreach (DataGridColumn column in this) 2094private void GiveAwayWidthToEveryNonStarColumn(DataGridColumn ignoredColumn, double perColumnGiveAwayWidth) 2096foreach (DataGridColumn column in this) 2125foreach (DataGridColumn column in this) 2163DataGridColumn resizingColumn = ColumnFromDisplayIndex(resizingColumnIndex); 2176foreach (DataGridColumn column in this) 2225private double TakeAwayWidthFromColumns(DataGridColumn ignoredColumn, double takeAwayWidth, bool widthAlreadyUtilized) 2235private double TakeAwayWidthFromColumns(DataGridColumn ignoredColumn, double takeAwayWidth, bool widthAlreadyUtilized, double totalAvailableWidth) 2249private double TakeAwayWidthFromStarColumns(DataGridColumn ignoredColumn, double takeAwayWidth) 2255foreach (DataGridColumn column in this) 2282private double TakeAwayWidthFromNonStarColumns(DataGridColumn ignoredColumn, double takeAwayWidth) 2318DataGridColumn ignoredColumn, 2323foreach (DataGridColumn column in this) 2357DataGridColumn ignoredColumn, 2360foreach (DataGridColumn column in this) 2497DataGridColumn column = ColumnFromDisplayIndex(i); 2517DataGridColumn column = ColumnFromDisplayIndex(i); 2543private Dictionary<DataGridColumn, DataGridLength> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridColumnEventArgs.cs (3)
18public DataGridColumnEventArgs(DataGridColumn column) 26public DataGridColumn Column 31private DataGridColumn _column;
System\Windows\Controls\DataGridColumnHeaderCollection.cs (10)
22public DataGridColumnHeaderCollection(ObservableCollection<DataGridColumn> columns) 32public DataGridColumn ColumnFromIndex(int index) 48internal void NotifyHeaderPropertyChanged(DataGridColumn column, DependencyPropertyChangedEventArgs e) 50Debug.Assert(e.Property == DataGridColumn.HeaderProperty, "We only want to know about the header property changing"); 86public ColumnHeaderCollectionEnumerator(ObservableCollection<DataGridColumn> columns) 105DataGridColumn column = _columns[_current]; 189private ObservableCollection<DataGridColumn> _columns; 252DataGridColumn column = columns[i] as DataGridColumn; 269private ObservableCollection<DataGridColumn> _columns;
System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (1)
22public DataGridColumnReorderingEventArgs(DataGridColumn dataGridColumn)
System\Windows\Controls\DataGridComboBoxColumn.cs (3)
373ComboBox.ItemsSourceProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(null, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 390ComboBox.DisplayMemberPathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 405ComboBox.SelectedValuePathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\DataGridHelper.cs (1)
246DataGridColumn column = cell.Column;
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
37new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
25public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 36public DataGridColumn Column 65private DataGridColumn _dataGridColumn;
System\Windows\Controls\DataGridRow.cs (1)
601protected internal virtual void OnColumnsChanged(ObservableCollection<DataGridColumn> columns, NotifyCollectionChangedEventArgs e)
System\Windows\Controls\DataGridSortingEventArgs.cs (1)
17public DataGridSortingEventArgs(DataGridColumn column)
System\Windows\Controls\DataGridTemplateColumn.cs (5)
50return DataGridColumn.OnCoerceCanUserSort(d, baseValue); 73new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 91new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 110new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent))); 129new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DataGridColumn.NotifyPropertyChangeForRefreshContent)));
System\Windows\Controls\DataGridTextColumn.cs (5)
302new FrameworkPropertyMetadata(SystemFonts.MessageFontFamily, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 323new FrameworkPropertyMetadata(SystemFonts.ThemeMessageFontSize, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 346new FrameworkPropertyMetadata(SystemFonts.MessageFontStyle, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 367new FrameworkPropertyMetadata(SystemFonts.MessageFontWeight, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 388new FrameworkPropertyMetadata(SystemColors.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\IProvideDataGridColumn.cs (1)
15DataGridColumn Column
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
122ObservableCollection<DataGridColumn> columns = dataGridOwner.Columns; 253ObservableCollection<DataGridColumn> columns = Columns; 344protected internal virtual void OnColumnsChanged(ObservableCollection<DataGridColumn> columns, NotifyCollectionChangedEventArgs e) 386if (e.Property == DataGridColumn.WidthProperty || 387e.Property == DataGridColumn.DisplayIndexProperty) 389if (((DataGridColumn)d).IsVisible) 391InvalidateDataGridCellsPanelMeasureAndArrangeImpl((e.Property == DataGridColumn.WidthProperty)/*invalidateMeasureUptoRowsPresenter*/); 395e.Property == DataGridColumn.VisibilityProperty || 623private ObservableCollection<DataGridColumn> Columns
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (34)
61public DataGridColumn Column 106internal void PrepareColumnHeader(object item, DataGridColumn column) 173DataGridColumn column = header.Column; 192DataGridColumn column = header.Column; 330DataGridColumn resizingColumn = header.Column; 403DataGridColumn column = d as DataGridColumn; 410if (e.Property == DataGridColumn.WidthProperty) 414else if (e.Property == DataGridColumn.HeaderProperty || e.Property == ContentProperty) 418else if (e.Property == DataGridColumn.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 422else if (e.Property == DataGridColumn.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 426else if (e.Property == DataGridColumn.HeaderStringFormatProperty || e.Property == ContentStringFormatProperty) 430else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 438else if (e.Property == DataGridColumn.DisplayIndexProperty) 447else if (e.Property == DataGridColumn.CanUserSortProperty) 451else if (e.Property == DataGridColumn.SortDirectionProperty) 455else if (e.Property == DataGridColumn.IsFrozenProperty) 459else if (e.Property == DataGridColumn.CanUserResizeProperty) 463else if (e.Property == DataGridColumn.VisibilityProperty) 501DataGridColumn column = dataGridOwner.ColumnFromDisplayIndex(index); 587DataGridColumn column = dataGrid.ColumnFromDisplayIndex(index); 616DataGridColumn.HeaderProperty); 641DataGridColumn.HeaderTemplateProperty); 655DataGridColumn.HeaderTemplateSelectorProperty); 669DataGridColumn.HeaderStringFormatProperty); 678DataGridColumn column = columnHeader.Column; 700DataGridColumn.HeaderStyleProperty, 788DataGridColumn column = columnHeader.Column; 820DataGridColumn column = header.Column; 836DataGridColumn column = header.Column; 894DataGridColumn column = header.Column; 1091DataGridColumn IProvideDataGridColumn.Column 1115DataGridColumn column = Column; 1139private DataGridColumn _column;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (13)
231DataGridColumn column = ColumnFromContainer(header); 266private DataGridColumn ColumnFromContainer(DataGridColumnHeader container) 291DataGridColumn column = d as DataGridColumn; 294if (e.Property == DataGridColumn.WidthProperty || 295e.Property == DataGridColumn.DisplayIndexProperty) 303e.Property == DataGridColumn.VisibilityProperty || 335if (e.Property == DataGridColumn.HeaderProperty) 519DataGridColumn column = header.Column; 771DataGridColumn column = _draggingSrcColumnHeader.Column; 863DataGridColumn column = _draggingSrcColumnHeader.Column; 917private static double GetColumnEstimatedWidth(DataGridColumn column, double averageColumnWidth) 963DataGridColumn column = dataGrid.ColumnFromDisplayIndex(i);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
1121internal void OnColumnsChanged(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex, IList selectedRows) 1193private void OnRemoveColumn(int columnIndex, DataGridColumn oldColumn) 1232private void OnReplaceColumn(int columnIndex, DataGridColumn oldColumn, IList selectedRows) 1316internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1328protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1340private DataGridColumn _removedColumn; 1617DataGridColumn column = owner.ColumnFromDisplayIndex(columnIndex); 1645DataGridColumn column = _owner.ColumnFromDisplayIndex(columnIndex); 1655protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)