419 references to DataGrid
PresentationFramework (390)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
952parent == DataGrid.NewItemPlaceholder)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
25public DataGridAutomationPeer(DataGrid owner) 302private DataGrid OwningDataGrid 306return (DataGrid)Owner;
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
815return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 819private DataGrid OwningDataGrid 832DataGrid dataGrid = this.OwningDataGrid;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
226internal DataGrid OwningDataGrid
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
268private DataGrid OwningDataGrid
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
371DataGrid dataGrid = this.OwningDataGrid; 582return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 595private DataGrid OwningDataGrid 600return (DataGrid)gridPeer.Owner;
src\Framework\System\Windows\Controls\DataGrid.cs (142)
42Type ownerType = typeof(DataGrid); 44DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(DataGrid))); 74CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy))); 76EventManager.RegisterClassHandler(typeof(DataGrid), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true); 142DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 157DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader)); 175typeof(DataGrid), 195typeof(DataGrid), 201((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 474((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter); 482((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 490((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 498((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 506((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 514((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders); 522((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid); 538((DataGrid)d).OnItemTemplateChanged(null, null); 547((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 555((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders); 563((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 571((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter); 579((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter); 699typeof(DataGrid), 718typeof(DataGrid), 737typeof(DataGrid), 901DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 910if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 912return d.GetValue(DataGrid.RowStyleProperty); 931DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1013DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged))); 1022if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1024return d.GetValue(DataGrid.RowStyleSelectorProperty); 1032DataGrid dataGrid = (DataGrid)d; 1056DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1074DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged))); 1082DataGrid dataGrid = (DataGrid)d; 1106DependencyProperty.Register("RowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1121DependencyProperty.Register("MinRowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1165var dataGrid = row.DataGridOwner; 1206DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged))); 1221DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 1241DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged)); 1256DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All)); 1263var dataGrid = ((DataGrid)d); 1395DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1410DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1425DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1440DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1455DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1522public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1536public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2036typeof(DataGrid), 2058public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2064public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2071public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2086((DataGrid)sender).OnCanExecuteBeginEdit(e); 2091((DataGrid)sender).OnExecutedBeginEdit(e); 2292((DataGrid)sender).OnCanExecuteCommitEdit(e); 2297((DataGrid)sender).OnExecutedCommitEdit(e); 2496((DataGrid)sender).OnCanExecuteCancelEdit(e); 2501((DataGrid)sender).OnExecutedCancelEdit(e); 2588((DataGrid)sender).OnCanExecuteDelete(e); 2593((DataGrid)sender).OnExecutedDelete(e); 2782DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2789((DataGrid)d).CancelAnyEdit(); 2818DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2822DataGrid dataGrid = (DataGrid)d; 2861DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2865DataGrid dataGrid = (DataGrid)d; 2894DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2898DataGrid dataGrid = (DataGrid)d; 3465DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3469((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3474return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3477private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3515DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3525return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3885return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3905DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3920DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3935DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3950DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4052DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4073typeof(DataGrid), 4339DataGrid dataGrid = (DataGrid)sender; 4346DataGrid dataGrid = (DataGrid)sender; 4450DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4454DataGrid dataGrid = (DataGrid)d; 4512DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4516DataGrid dataGrid = (DataGrid)d; 5312internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5331private DataGrid _dataGrid; 5422((DataGrid)d).UpdateVisualState(); 5432((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6199DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6352((DataGrid)sender).OnAnyMouseUp(e); 6989public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7078typeof(DataGrid), 7093DataGrid dataGrid = (DataGrid)d; 7105DataGrid dataGrid = (DataGrid)d; 7493DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7625DataGrid dataGrid = (DataGrid)d; 7814DataGrid.GenerateColumns( 7868DataGrid.GenerateColumns( 7884DataGrid dataGrid, 7926DataGrid dataGrid = (DataGrid)d; 7949typeof(DataGrid), 7970DataGrid dataGrid = (DataGrid)d; 7988((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 8009typeof(DataGrid), 8068typeof(DataGrid), 8077DataGrid dataGrid = (DataGrid)d; 8093if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8095return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8116typeof(DataGrid), 8126((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8137DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8152DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8167DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8236DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8255((DataGrid)target).OnCanExecuteCopy(args); 8270((DataGrid)target).OnExecutedCopy(args); 8450typeof(DataGrid), 8481((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8496typeof(DataGrid),
src\Framework\System\Windows\Controls\DataGridCell.cs (21)
96DataGrid dataGrid = _owner.DataGridOwner; 224var dataGrid = cell.DataGridOwner; 255else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 259else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 267else if (e.Property == DataGrid.IsKeyboardFocusWithinProperty) 304DataGrid.CellStyleProperty); 504var dataGrid = row.DataGridOwner; 535var dataGrid = cell.DataGridOwner; 545DataGrid.IsReadOnlyProperty); 556DataGrid owner = cell.DataGridOwner; 569DataGrid owner = cell.DataGridOwner; 630DataGrid dataGridOwner = DataGridOwner; 675DataGrid dataGrid = cell.DataGridOwner; 794DataGrid dataGridOwner = DataGridOwner; 830DataGrid dataGridOwner = DataGridOwner; 864DataGrid dataGrid = DataGridOwner; 906DataGrid dataGridOwner = DataGridOwner; 934DataGrid dataGridOwner = DataGridOwner; 1036internal DataGrid DataGridOwner 1042DataGrid dataGridOwner = _owner.DataGridOwner; 1045dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid;
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (9)
58DataGrid owner = cell.DataGridOwner; 64internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 75internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 115private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 127internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 228internal bool IsValidForDataGrid(DataGrid dataGrid) 230DataGrid owner = Owner; 277private DataGrid Owner 283return (DataGrid)_owner.Target;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (26)
168DataGrid parentDataGrid = ParentDataGrid; 231DataGrid parentDataGrid = ParentDataGrid; 602DataGrid parentDataGrid = ParentDataGrid; 834DataGrid parentDataGrid = ParentDataGrid; 966DataGrid dataGrid = ParentDataGrid; 1037DataGrid parentDataGrid = ParentDataGrid; 1293DataGrid parentDataGrid = ParentDataGrid; 1309DataGrid parentDataGrid = ParentDataGrid; 1368DataGrid parentDataGrid = ParentDataGrid; 1574DataGrid parentDataGrid = ParentDataGrid; 1690DataGrid dataGrid = ParentDataGrid; 1702DataGrid dataGrid = ParentDataGrid; 1721DataGrid dataGrid = ParentDataGrid; 1733DataGrid dataGrid = ParentDataGrid; 1752DataGrid dataGrid = ParentDataGrid; 1764DataGrid dataGrid = ParentDataGrid; 1844DataGrid parentDataGrid = ParentDataGrid; 1924DataGrid parentDataGrid = ParentDataGrid; 1988DataGrid dataGrid = ParentDataGrid; 2005DataGrid parentDataGrid = ParentDataGrid; 2147DataGrid parentDataGrid = ParentDataGrid; 2239DataGrid parentDataGrid = ParentDataGrid; 2253DataGrid parentDataGrid = ParentDataGrid; 2396DataGrid parentDataGrid = ParentDataGrid; 2409private DataGrid ParentDataGrid 2459private DataGrid _parentDataGrid;
src\Framework\System\Windows\Controls\DataGridColumn.cs (30)
63DataGrid.ColumnHeaderStyleProperty); 138DataGrid.CellStyleProperty); 172DataGrid.IsReadOnlyProperty); 229DataGrid dataGrid = column.DataGridOwner; 317DataGrid dataGrid = column.DataGridOwner; 356DataGrid dataGrid = column.DataGridOwner; 399DataGrid.ColumnWidthProperty); 427DataGrid.MinColumnWidthProperty); 441DataGrid.MaxColumnWidthProperty); 826if (e.Property == DataGrid.MaxColumnWidthProperty || e.Property == MaxWidthProperty) 830else if (e.Property == DataGrid.MinColumnWidthProperty || e.Property == MinWidthProperty) 834else if (e.Property == DataGrid.ColumnWidthProperty || e.Property == WidthProperty) 838else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty) 842else if (e.Property == DataGrid.CellStyleProperty || e.Property == CellStyleProperty) 846else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 850else if (e.Property == DataGrid.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty) 858else if (e.Property == DataGrid.CanUserSortColumnsProperty) 862else if (e.Property == DataGrid.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty) 866else if (e.Property == DataGrid.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty) 882DataGrid dataGridOwner = column.DataGridOwner; 943protected internal DataGrid DataGridOwner 1071BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(DataGrid.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers); 1074return column.DataGridOwner.GetValue(DataGrid.CanUserSortColumnsProperty); 1083DataGrid.CanUserSortColumnsProperty); 1291DataGrid dataGrid = column.DataGridOwner; 1334DataGrid.CanUserReorderColumnsProperty); 1360DataGrid.DragIndicatorStyleProperty); 1456var owner = DataGridOwner; 1493DataGrid.CanUserResizeColumnsProperty); 1553private DataGrid _dataGridOwner = null; // This property is updated by DataGrid when the column is added to the DataGrid.Columns collection
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (9)
24internal DataGridColumnCollection(DataGrid dataGridOwner) 185else if (e.Property == DataGrid.FrozenColumnCountProperty) 197else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 201else if (e.Property == DataGrid.CellsPanelHorizontalOffsetProperty) 205else if (e.Property == DataGrid.HorizontalScrollOffsetProperty || 775private DataGrid DataGridOwner 2413DataGrid dataGrid = DataGridOwner; 2456DataGrid dataGrid = DataGridOwner; 2539private DataGrid _dataGridOwner;
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
51public static bool IsGridLineVisible(DataGrid dataGrid, bool isHorizontal)
src\Framework\System\Windows\Controls\DataGridRow.cs (31)
197var dataGrid = DataGridOwner; 441internal void PrepareRow(object item, DataGrid owningDataGrid) 483internal void ClearRow(DataGrid owningDataGrid) 623DataGrid.RowHeaderStyleProperty); 634DataGrid.RowHeaderTemplateProperty); 645DataGrid.RowHeaderTemplateSelectorProperty); 661DataGrid.RowBackgroundProperty); 670DataGrid.AlternatingRowBackgroundProperty); 686DataGrid.RowValidationErrorTemplateProperty); 697DataGrid.RowDetailsTemplateProperty); 708DataGrid.RowDetailsTemplateSelectorProperty); 719DataGrid.RowDetailsVisibilityModeProperty); 752var owningDataGrid = row.DataGridOwner; 810Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 830var dataGrid = row.DataGridOwner; 883if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 888else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 892else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 896else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 900else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 904else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 909else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 914else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 933e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1091DataGrid grid = row.DataGridOwner; 1201DataGrid dataGrid = DataGridOwner; 1269DataGrid dataGrid = DataGridOwner; 1317DataGrid dataGridOwner = DataGridOwner; 1340internal DataGrid DataGridOwner 1378private DataGrid _owner;
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (1)
140value = DataGrid.NewItemPlaceholder;
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
104var dataGridOwner = DataGridOwner; 115NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(DataGrid.CellStyleProperty, null, null), DataGridNotificationTarget.Cells); 207DataGrid.RowHeightProperty); 218DataGrid.MinRowHeightProperty); 395else if (e.Property == DataGrid.FrozenColumnCountProperty || 397e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 398e.Property == DataGrid.HorizontalScrollOffsetProperty || 412else if (e.Property == DataGrid.RowHeightProperty || e.Property == HeightProperty) 416else if (e.Property == DataGrid.MinRowHeightProperty || e.Property == MinHeightProperty) 420else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 478var dataGrid = row.DataGridOwner; 522DataGrid.EnableColumnVirtualizationProperty); 545DataGrid dataGrid = DataGridOwner; 602internal DataGrid DataGridOwner 629DataGrid owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
196DataGrid dataGrid = column.DataGridOwner; 303DataGrid dataGrid = header.Column.DataGridOwner; 337DataGrid dataGrid = resizingColumn.DataGridOwner; 354DataGrid dataGrid = header.Column.DataGridOwner; 431else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 435else if (e.Property == DataGrid.ColumnHeaderHeightProperty || e.Property == HeightProperty) 444else if (e.Property == DataGrid.CanUserResizeColumnsProperty) 483DataGrid dataGrid = Column.DataGridOwner; 498DataGrid dataGridOwner = Column.DataGridOwner; 519DataGrid dataGrid = Column.DataGridOwner; 537DataGrid dataGrid = Column.DataGridOwner; 550DataGrid dataGrid = Column.DataGridOwner; 569DataGrid dataGrid = Column.DataGridOwner; 680DataGrid dataGrid = null; 703DataGrid.ColumnHeaderStyleProperty); 790DataGrid dataGrid = null; 811DataGrid.ColumnHeaderHeightProperty); 1119DataGrid dataGridOwner = column.DataGridOwner;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
72DataGrid grid = ParentDataGrid; 150DataGrid dataGrid = ParentDataGrid; 302else if (e.Property == DataGrid.FrozenColumnCountProperty || 304e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 310else if (e.Property == DataGrid.HorizontalScrollOffsetProperty) 323else if (e.Property == DataGrid.CellsPanelActualWidthProperty) 327else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 354if (d is DataGrid && 355(e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGrid.ColumnHeaderHeightProperty) ) 395DataGrid.EnableColumnVirtualizationProperty); 954DataGrid dataGrid = ParentDataGrid; 1041internal DataGrid ParentDataGrid 1047_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1068private DataGrid _parentDataGrid = null;
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
54var dataGrid = row != null ? row.DataGridOwner : null; 62DataGrid.RowDetailsTemplateProperty); 72var dataGrid = row != null ? row.DataGridOwner : null; 80DataGrid.RowDetailsTemplateSelectorProperty); 118DataGrid dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null; 184if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty) 188else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 217var dataGrid = row.DataGridOwner; 251var dataGrid = row.DataGridOwner; 285var dataGrid = row.DataGridOwner; 309private DataGrid DataGridOwner
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
191DataGrid dataGridOwner = DataGridOwner; 269else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 273else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 277else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 281else if (e.Property == DataGrid.RowHeaderWidthProperty || e.Property == WidthProperty) 289else if (e.Property == DataGrid.CanUserResizeRowsProperty) 293else if (e.Property == DataGrid.RowHeaderActualWidthProperty) 308else if (e.Property == DataGrid.CurrentItemProperty || 311e.Property == DataGrid.IsKeyboardFocusWithinProperty) 342var dataGrid = row != null ? row.DataGridOwner : null; 350DataGrid.RowHeaderTemplateProperty); 360var dataGrid = row != null ? row.DataGridOwner : null; 368DataGrid.RowHeaderTemplateSelectorProperty); 384DataGrid.RowHeaderStyleProperty); 398DataGrid.RowHeaderWidthProperty); 412var dataGrid = row.DataGridOwner; 458var dataGrid = row.DataGridOwner; 566DataGrid dataGridOwner = DataGridOwner; 651DataGrid dataGrid = DataGridOwner; 670DataGrid dataGrid = DataGridOwner; 692DataGrid dataGrid = row.DataGridOwner; 776private DataGrid DataGridOwner
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
52DataGrid dataGrid = Owner; 87DataGrid dataGrid = Owner; 146internal DataGrid Owner 152_owner = ItemsControl.GetItemsOwner(this) as DataGrid; 163private DataGrid _owner;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1947return (itemsControl is DataGrid) || (itemsControl is DataGridCellsPresenter);
src\Framework\System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
61internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
src\Framework\System\Windows\Controls\SelectedCellsCollection.cs (1)
40internal SelectedCellsCollection(DataGrid owner) : base(owner)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
27internal VirtualizedCellInfoCollection(DataGrid owner) 40private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 54internal static VirtualizedCellInfoCollection MakeEmptyCollection(DataGrid owner) 238public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 298private DataGrid _owner; 1319internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1325internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1331protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1563protected DataGrid Owner 1610private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1658protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1668private DataGrid _owner;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
12220DataGrid dg = ic as DataGrid;
src\Framework\System\Windows\SystemResourceKey.cs (4)
1935_focusBorderBrushKey = new ComponentResourceKey(typeof(DataGrid), "FocusBorderBrushKey"); 1948_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(DataGrid), "TextBlockComboBoxStyleKey"); 1973_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnFloatingHeaderStyleKey"); 1986_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnHeaderDropSeparatorStyleKey");
System.Activities.Presentation (29)
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (3)
24public static void OnAddAnnotationCommandCanExecute(CanExecuteRoutedEventArgs e, EditingContext editingContext, DataGrid dataGrid) 47public static void OnDeleteAnnotationCommandCanExecute(CanExecuteRoutedEventArgs e, EditingContext editingContext, DataGrid dataGrid) 80public static void OnDeleteCommandCanExecute(CanExecuteRoutedEventArgs e, DataGrid dataGrid)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
603DataGridHelper.DataGridCellGotFocus((DataGrid)sender, e);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (22)
47DependencyProperty.RegisterAttached("DGHelper", typeof(DataGridHelper), typeof(DataGrid), new UIPropertyMetadata(null)); 75DataGrid dataGrid; 82public DataGridHelper(DataGrid instance, Control owner) 254public Func<DataGrid, object, object> NotifyNewRowAddedCallback 280internal DataGrid DataGrid 635DataGrid dg = VisualTreeUtils.FindVisualAncestor<DataGrid>(ctrl); 894var dataGrid = VisualTreeUtils.FindVisualAncestor<DataGrid>(dataGridCell); 919internal static void DataGridCellGotFocus(DataGrid dataGrid, RoutedEventArgs e) 991public static DataGridCell GetCell(DataGrid dataGrid, int row, int column) 1016internal static ModelItem GetSingleSelectedObject(DataGrid dataGrid) 1041public static DataGridRow GetRow(DataGrid dataGrid, int index) 1078public static void CommitPendingEdits(DataGrid dataGrid) 1116public static void OnDeleteSelectedItems(DataGrid dataGrid) 1179protected DataGrid OwnerDataGrid 1185public EditingControlBehavior(DataGrid dataGrid) 1212public DefaultControlBehavior(DataGrid dataGrid) 1232public TextBoxBehavior(DataGrid dataGrid) 1266public VBIdentifierDesignerBehavior(DataGrid dataGrid) 1332public TypePresenterBehavior(DataGrid dataGrid) 1398public ExpressionTextBoxBehavior(DataGrid dataGrid)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
229DataGrid importsDataGrid = sender as DataGrid;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
613DataGridHelper.DataGridCellGotFocus((DataGrid)sender, e);