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