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