389 references to DataGrid
PresentationFramework (389)
MS\Internal\Data\PropertyPathWorker.cs (1)
955
parent ==
DataGrid
.NewItemPlaceholder)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
29
public DataGridAutomationPeer(
DataGrid
owner)
303
private
DataGrid
OwningDataGrid
307
return (
DataGrid
)Owner;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
841
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
845
private
DataGrid
OwningDataGrid
858
DataGrid
dataGrid = this.OwningDataGrid;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
230
internal
DataGrid
OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
272
private
DataGrid
OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
368
DataGrid
dataGrid = this.OwningDataGrid;
572
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
585
private
DataGrid
OwningDataGrid
590
return (
DataGrid
)gridPeer.Owner;
System\Windows\Controls\DataGrid.cs (142)
41
Type ownerType = typeof(
DataGrid
);
43
DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(
DataGrid
)));
73
CommandManager.RegisterClassCommandBinding(typeof(
DataGrid
), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
75
EventManager.RegisterClassHandler(typeof(
DataGrid
), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true);
141
DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
156
DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader));
174
typeof(
DataGrid
),
194
typeof(
DataGrid
),
200
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns);
473
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter);
481
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells);
489
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns);
497
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders);
505
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders);
513
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders);
521
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid);
537
((
DataGrid
)d).OnItemTemplateChanged(null, null);
546
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
554
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders);
562
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
570
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter);
578
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter);
698
typeof(
DataGrid
),
717
typeof(
DataGrid
),
736
typeof(
DataGrid
),
900
DependencyProperty.Register("RowStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
909
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleProperty))
911
return d.GetValue(
DataGrid
.RowStyleProperty);
930
DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1012
DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged)));
1021
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleSelectorProperty))
1023
return d.GetValue(
DataGrid
.RowStyleSelectorProperty);
1031
DataGrid
dataGrid = (
DataGrid
)d;
1055
DependencyProperty.Register("RowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1073
DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));
1081
DataGrid
dataGrid = (
DataGrid
)d;
1105
DependencyProperty.Register("RowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1120
DependencyProperty.Register("MinRowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1164
var
dataGrid = row.DataGridOwner;
1205
DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged)));
1220
DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
1240
DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged));
1255
DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All));
1262
var
dataGrid = ((
DataGrid
)d);
1394
DependencyProperty.Register("CellStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1409
DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1424
DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1439
DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1454
DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1521
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
1535
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
2032
typeof(
DataGrid
),
2054
public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(
DataGrid
));
2060
public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(
DataGrid
));
2067
public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(
DataGrid
));
2082
((
DataGrid
)sender).OnCanExecuteBeginEdit(e);
2087
((
DataGrid
)sender).OnExecutedBeginEdit(e);
2287
((
DataGrid
)sender).OnCanExecuteCommitEdit(e);
2292
((
DataGrid
)sender).OnExecutedCommitEdit(e);
2491
((
DataGrid
)sender).OnCanExecuteCancelEdit(e);
2496
((
DataGrid
)sender).OnExecutedCancelEdit(e);
2583
((
DataGrid
)sender).OnCanExecuteDelete(e);
2588
((
DataGrid
)sender).OnExecutedDelete(e);
2777
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged)));
2784
((
DataGrid
)d).CancelAnyEdit();
2813
DependencyProperty.Register("CurrentItem", typeof(object), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged)));
2817
DataGrid
dataGrid = (
DataGrid
)d;
2856
DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged)));
2860
DataGrid
dataGrid = (
DataGrid
)d;
2889
DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2893
DataGrid
dataGrid = (
DataGrid
)d;
3460
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3464
((
DataGrid
)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false);
3469
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ true);
3472
private static bool OnCoerceCanUserAddOrDeleteRows(
DataGrid
dataGrid, bool baseValue, bool canUserAddRowsProperty)
3510
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
3520
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ false);
3880
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
3900
DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged));
3915
DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false));
3930
DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
3945
DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
4047
DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
4068
typeof(
DataGrid
),
4334
DataGrid
dataGrid = (
DataGrid
)sender;
4341
DataGrid
dataGrid = (
DataGrid
)sender;
4445
DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4449
DataGrid
dataGrid = (
DataGrid
)d;
4507
DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged)));
4511
DataGrid
dataGrid = (
DataGrid
)d;
5307
internal ChangingSelectedCellsHelper(
DataGrid
dataGrid)
5326
private
DataGrid
_dataGrid;
5417
((
DataGrid
)d).UpdateVisualState();
5427
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells);
6194
DataGrid
focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as
DataGrid
;
6347
((
DataGrid
)sender).OnAnyMouseUp(e);
6987
public void SetValue(
DataGrid
dataGrid, object value, bool clipboard)
7075
typeof(
DataGrid
),
7090
DataGrid
dataGrid = (
DataGrid
)d;
7102
DataGrid
dataGrid = (
DataGrid
)d;
7490
DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged)));
7622
DataGrid
dataGrid = (
DataGrid
)d;
7811
DataGrid
.GenerateColumns(
7862
DataGrid
.GenerateColumns(
7878
DataGrid
dataGrid,
7920
DataGrid
dataGrid = (
DataGrid
)d;
7943
typeof(
DataGrid
),
7964
DataGrid
dataGrid = (
DataGrid
)d;
7982
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter);
8003
typeof(
DataGrid
),
8062
typeof(
DataGrid
),
8071
DataGrid
dataGrid = (
DataGrid
)d;
8087
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.EnableRowVirtualizationProperty))
8089
return d.GetValue(
DataGrid
.EnableRowVirtualizationProperty);
8110
typeof(
DataGrid
),
8120
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection);
8131
DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged)));
8146
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8161
DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null));
8230
DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged)));
8249
((
DataGrid
)target).OnCanExecuteCopy(args);
8264
((
DataGrid
)target).OnExecutedCopy(args);
8423
typeof(
DataGrid
),
8454
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter);
8469
typeof(
DataGrid
),
System\Windows\Controls\DataGridCell.cs (21)
101
DataGrid
dataGrid = _owner.DataGridOwner;
229
var
dataGrid = cell.DataGridOwner;
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)
272
else if (e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
309
DataGrid
.CellStyleProperty);
509
var
dataGrid = row.DataGridOwner;
540
var
dataGrid = cell.DataGridOwner;
550
DataGrid
.IsReadOnlyProperty);
561
DataGrid
owner = cell.DataGridOwner;
574
DataGrid
owner = cell.DataGridOwner;
635
DataGrid
dataGridOwner = DataGridOwner;
680
DataGrid
dataGrid = cell.DataGridOwner;
799
DataGrid
dataGridOwner = DataGridOwner;
835
DataGrid
dataGridOwner = DataGridOwner;
869
DataGrid
dataGrid = DataGridOwner;
911
DataGrid
dataGridOwner = DataGridOwner;
938
DataGrid
dataGridOwner = DataGridOwner;
1080
internal
DataGrid
DataGridOwner
1086
DataGrid
dataGridOwner = _owner.DataGridOwner;
1089
dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as
DataGrid
;
System\Windows\Controls\DataGridCellInfo.cs (9)
51
DataGrid
owner = cell.DataGridOwner;
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)
221
internal bool IsValidForDataGrid(
DataGrid
dataGrid)
223
DataGrid
owner = Owner;
270
private
DataGrid
Owner
276
return (
DataGrid
)_owner.Target;
System\Windows\Controls\DataGridCellsPanel.cs (26)
166
DataGrid
parentDataGrid = ParentDataGrid;
229
DataGrid
parentDataGrid = ParentDataGrid;
600
DataGrid
parentDataGrid = ParentDataGrid;
832
DataGrid
parentDataGrid = ParentDataGrid;
964
DataGrid
dataGrid = ParentDataGrid;
1035
DataGrid
parentDataGrid = ParentDataGrid;
1291
DataGrid
parentDataGrid = ParentDataGrid;
1307
DataGrid
parentDataGrid = ParentDataGrid;
1366
DataGrid
parentDataGrid = ParentDataGrid;
1572
DataGrid
parentDataGrid = ParentDataGrid;
1688
DataGrid
dataGrid = ParentDataGrid;
1700
DataGrid
dataGrid = ParentDataGrid;
1719
DataGrid
dataGrid = ParentDataGrid;
1731
DataGrid
dataGrid = ParentDataGrid;
1750
DataGrid
dataGrid = ParentDataGrid;
1762
DataGrid
dataGrid = ParentDataGrid;
1842
DataGrid
parentDataGrid = ParentDataGrid;
1922
DataGrid
parentDataGrid = ParentDataGrid;
1986
DataGrid
dataGrid = ParentDataGrid;
2003
DataGrid
parentDataGrid = ParentDataGrid;
2145
DataGrid
parentDataGrid = ParentDataGrid;
2235
DataGrid
parentDataGrid = ParentDataGrid;
2249
DataGrid
parentDataGrid = ParentDataGrid;
2392
DataGrid
parentDataGrid = ParentDataGrid;
2405
private
DataGrid
ParentDataGrid
2455
private
DataGrid
_parentDataGrid;
System\Windows\Controls\DataGridColumn.cs (30)
62
DataGrid
.ColumnHeaderStyleProperty);
137
DataGrid
.CellStyleProperty);
171
DataGrid
.IsReadOnlyProperty);
228
DataGrid
dataGrid = column.DataGridOwner;
316
DataGrid
dataGrid = column.DataGridOwner;
355
DataGrid
dataGrid = column.DataGridOwner;
398
DataGrid
.ColumnWidthProperty);
426
DataGrid
.MinColumnWidthProperty);
440
DataGrid
.MaxColumnWidthProperty);
819
if (e.Property ==
DataGrid
.MaxColumnWidthProperty || e.Property == MaxWidthProperty)
823
else if (e.Property ==
DataGrid
.MinColumnWidthProperty || e.Property == MinWidthProperty)
827
else if (e.Property ==
DataGrid
.ColumnWidthProperty || e.Property == WidthProperty)
831
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty)
835
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == CellStyleProperty)
839
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
843
else if (e.Property ==
DataGrid
.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty)
851
else if (e.Property ==
DataGrid
.CanUserSortColumnsProperty)
855
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty)
859
else if (e.Property ==
DataGrid
.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty)
875
DataGrid
dataGridOwner = column.DataGridOwner;
936
protected internal
DataGrid
DataGridOwner
1064
BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(
DataGrid
.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers);
1067
return column.DataGridOwner.GetValue(
DataGrid
.CanUserSortColumnsProperty);
1076
DataGrid
.CanUserSortColumnsProperty);
1284
DataGrid
dataGrid = column.DataGridOwner;
1327
DataGrid
.CanUserReorderColumnsProperty);
1353
DataGrid
.DragIndicatorStyleProperty);
1449
var
owner = DataGridOwner;
1486
DataGrid
.CanUserResizeColumnsProperty);
1556
private
DataGrid
_dataGridOwner = null; // This property is updated by DataGrid when the column is added to the DataGrid.Columns collection
System\Windows\Controls\DataGridColumnCollection.cs (9)
23
internal DataGridColumnCollection(
DataGrid
dataGridOwner)
184
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty)
196
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
200
else if (e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty)
204
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
774
private
DataGrid
DataGridOwner
2412
DataGrid
dataGrid = DataGridOwner;
2455
DataGrid
dataGrid = DataGridOwner;
2538
private
DataGrid
_dataGridOwner;
System\Windows\Controls\DataGridHelper.cs (1)
50
public static bool IsGridLineVisible(
DataGrid
dataGrid, bool isHorizontal)
System\Windows\Controls\DataGridRow.cs (31)
196
var
dataGrid = DataGridOwner;
440
internal void PrepareRow(object item,
DataGrid
owningDataGrid)
482
internal void ClearRow(
DataGrid
owningDataGrid)
622
DataGrid
.RowHeaderStyleProperty);
633
DataGrid
.RowHeaderTemplateProperty);
644
DataGrid
.RowHeaderTemplateSelectorProperty);
660
DataGrid
.RowBackgroundProperty);
669
DataGrid
.AlternatingRowBackgroundProperty);
685
DataGrid
.RowValidationErrorTemplateProperty);
696
DataGrid
.RowDetailsTemplateProperty);
707
DataGrid
.RowDetailsTemplateSelectorProperty);
718
DataGrid
.RowDetailsVisibilityModeProperty);
751
var
owningDataGrid = row.DataGridOwner;
809
Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(
DataGrid
.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
829
var
dataGrid = row.DataGridOwner;
882
if (e.Property ==
DataGrid
.RowBackgroundProperty || e.Property ==
DataGrid
.AlternatingRowBackgroundProperty ||
887
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == HeaderStyleProperty)
891
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty)
895
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty)
899
else if (e.Property ==
DataGrid
.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty)
903
else if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty)
908
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty)
913
else if (e.Property ==
DataGrid
.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty)
932
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
1090
DataGrid
grid = row.DataGridOwner;
1200
DataGrid
dataGrid = DataGridOwner;
1268
DataGrid
dataGrid = DataGridOwner;
1316
DataGrid
dataGridOwner = DataGridOwner;
1339
internal
DataGrid
DataGridOwner
1377
private
DataGrid
_owner;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
139
value =
DataGrid
.NewItemPlaceholder;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
103
var
dataGridOwner = DataGridOwner;
114
NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(
DataGrid
.CellStyleProperty, null, null), DataGridNotificationTarget.Cells);
206
DataGrid
.RowHeightProperty);
217
DataGrid
.MinRowHeightProperty);
394
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
396
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
397
e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
411
else if (e.Property ==
DataGrid
.RowHeightProperty || e.Property == HeightProperty)
415
else if (e.Property ==
DataGrid
.MinRowHeightProperty || e.Property == MinHeightProperty)
419
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
477
var
dataGrid = row.DataGridOwner;
521
DataGrid
.EnableColumnVirtualizationProperty);
544
DataGrid
dataGrid = DataGridOwner;
601
internal
DataGrid
DataGridOwner
628
DataGrid
owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
195
DataGrid
dataGrid = column.DataGridOwner;
302
DataGrid
dataGrid = header.Column.DataGridOwner;
336
DataGrid
dataGrid = resizingColumn.DataGridOwner;
353
DataGrid
dataGrid = header.Column.DataGridOwner;
430
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty)
434
else if (e.Property ==
DataGrid
.ColumnHeaderHeightProperty || e.Property == HeightProperty)
443
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty)
482
DataGrid
dataGrid = Column.DataGridOwner;
497
DataGrid
dataGridOwner = Column.DataGridOwner;
518
DataGrid
dataGrid = Column.DataGridOwner;
536
DataGrid
dataGrid = Column.DataGridOwner;
549
DataGrid
dataGrid = Column.DataGridOwner;
568
DataGrid
dataGrid = Column.DataGridOwner;
679
DataGrid
dataGrid = null;
702
DataGrid
.ColumnHeaderStyleProperty);
789
DataGrid
dataGrid = null;
810
DataGrid
.ColumnHeaderHeightProperty);
1118
DataGrid
dataGridOwner = column.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
72
DataGrid
grid = ParentDataGrid;
150
DataGrid
dataGrid = ParentDataGrid;
302
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
304
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
310
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty)
323
else if (e.Property ==
DataGrid
.CellsPanelActualWidthProperty)
327
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
354
if (d is
DataGrid
&&
355
(e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property ==
DataGrid
.ColumnHeaderHeightProperty) )
395
DataGrid
.EnableColumnVirtualizationProperty);
954
DataGrid
dataGrid = ParentDataGrid;
1041
internal
DataGrid
ParentDataGrid
1047
_parentDataGrid = DataGridHelper.FindParent<
DataGrid
>(this);
1068
private
DataGrid
_parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
54
var
dataGrid = row != null ? row.DataGridOwner : null;
62
DataGrid
.RowDetailsTemplateProperty);
72
var
dataGrid = row != null ? row.DataGridOwner : null;
80
DataGrid
.RowDetailsTemplateSelectorProperty);
118
DataGrid
dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null;
184
if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty)
188
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
217
var
dataGrid = row.DataGridOwner;
251
var
dataGrid = row.DataGridOwner;
285
var
dataGrid = row.DataGridOwner;
309
private
DataGrid
DataGridOwner
System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
190
DataGrid
dataGridOwner = DataGridOwner;
268
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty)
272
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty)
276
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
280
else if (e.Property ==
DataGrid
.RowHeaderWidthProperty || e.Property == WidthProperty)
288
else if (e.Property ==
DataGrid
.CanUserResizeRowsProperty)
292
else if (e.Property ==
DataGrid
.RowHeaderActualWidthProperty)
307
else if (e.Property ==
DataGrid
.CurrentItemProperty ||
310
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
341
var
dataGrid = row != null ? row.DataGridOwner : null;
349
DataGrid
.RowHeaderTemplateProperty);
359
var
dataGrid = row != null ? row.DataGridOwner : null;
367
DataGrid
.RowHeaderTemplateSelectorProperty);
383
DataGrid
.RowHeaderStyleProperty);
397
DataGrid
.RowHeaderWidthProperty);
411
var
dataGrid = row.DataGridOwner;
457
var
dataGrid = row.DataGridOwner;
565
DataGrid
dataGridOwner = DataGridOwner;
650
DataGrid
dataGrid = DataGridOwner;
669
DataGrid
dataGrid = DataGridOwner;
691
DataGrid
dataGrid = row.DataGridOwner;
775
private
DataGrid
DataGridOwner
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
51
DataGrid
dataGrid = Owner;
86
DataGrid
dataGrid = Owner;
145
internal
DataGrid
Owner
151
_owner = ItemsControl.GetItemsOwner(this) as
DataGrid
;
162
private
DataGrid
_owner;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
46
internal SelectedCellsChangedEventArgs(
DataGrid
owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
System\Windows\Controls\SelectedCellsCollection.cs (1)
39
internal SelectedCellsCollection(
DataGrid
owner) : base(owner)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
26
internal VirtualizedCellInfoCollection(
DataGrid
owner)
39
private VirtualizedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions)
53
internal static VirtualizedCellInfoCollection MakeEmptyCollection(
DataGrid
owner)
237
public VirtualizedCellInfoCollectionEnumerator(
DataGrid
owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection)
297
private
DataGrid
_owner;
1316
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, DataGridColumn column)
1322
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, object item)
1328
protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1560
protected
DataGrid
Owner
1607
private DataGridCellInfo GetCellInfoFromIndex(
DataGrid
owner, List<CellRegion> regions, int index)
1655
protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1665
private
DataGrid
_owner;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12387
DataGrid
dg = ic as
DataGrid
;
System\Windows\SystemResourceKey.cs (4)
1928
_focusBorderBrushKey = new ComponentResourceKey(typeof(
DataGrid
), "FocusBorderBrushKey");
1941
_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "TextBlockComboBoxStyleKey");
1966
_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "ColumnFloatingHeaderStyleKey");
1979
_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "ColumnHeaderDropSeparatorStyleKey");