5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
999_selectedGridEntry = null; 4038_selectedGridEntry = null; 4078_selectedGridEntry = GetGridEntryFromRow(_selectedRow); 4301_selectedGridEntry = gridEntry; 4397_selectedGridEntry = gridEntry;
76 references to _selectedGridEntry
System.Windows.Forms (76)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (75)
158=> _selectedGridEntry is not null 159&& (EditTextBox.Focused || !string.IsNullOrEmpty(_selectedGridEntry.GetPropertyTextValue())); 163public bool CanCut => CanCopy && _selectedGridEntry is not null && _selectedGridEntry.IsTextEditable; 167public bool CanPaste => _selectedGridEntry is not null && _selectedGridEntry.IsTextEditable; 481get => _selectedGridEntry; 998_selectedGridEntry?.Dispose(); 1013else if (_selectedGridEntry is not null) 1015Clipboard.SetDataObject(_selectedGridEntry.GetPropertyTextValue()); 1555if (_selectedGridEntry is not null) 1562return !_selectedGridEntry.Expandable; 2190if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2192_selectedGridEntry.HasFocus = true; 2193SelectGridEntry(_selectedGridEntry, pageIn: false); 2200if (_selectedGridEntry is not null && _selectedGridEntry.GetValueOwner() is not null) 2202UpdateHelpAttributes(oldEntry: null, _selectedGridEntry); 2285if (index < 0 || _selectedGridEntry is null) 2325_selectedGridEntry?.OnValueReturnKey(); 2413if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2415_selectedGridEntry.HasFocus = true; 2583SelectGridEntry(_selectedGridEntry, pageIn: false); 2659if (_selectedGridEntry is not null) 2661string currentTextValue = _selectedGridEntry.GetPropertyTextValue(); 2935if (_selectedGridEntry is not null 2936&& _selectedGridEntry.Enumerable 2941ProcessEnumUpAndDown(_selectedGridEntry, keyCode, closeDropDown: false); 3149if (_selectedGridEntry is not null && _selectedGridEntry.Enumerable && EditTextBox.Focused && _selectedGridEntry.IsValueEditable) 3151int index = GetCurrentValueIndex(_selectedGridEntry); 3155object[] values = _selectedGridEntry.GetPropertyValueList(); 3171SelectGridEntry(_selectedGridEntry, pageIn: true); 3444bool setSelectTime = sender != _selectedGridEntry; 3487if (_selectedGridEntry is not null) 3489SelectGridEntry(_selectedGridEntry, true); 3503if (_selectedGridEntry is not null) 3505SelectGridEntry(_selectedGridEntry, true); 3624bool selectionVisible = _selectedGridEntry is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows; 3625SelectGridEntry(_selectedGridEntry, selectionVisible); 3639GridEntry? oldGridEntry = _selectedGridEntry; 3640if (_selectedGridEntry is not null) 3919else if (_selectedGridEntry is not null && _selectedGridEntry.Expandable) 3921SetExpand(_selectedGridEntry, !_selectedGridEntry.InternalExpanded); 3960GridEntry? selectedEntry = _selectedGridEntry; 4037UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 4169GridEntry? currentEntry = _selectedGridEntry; 4291UpdateHelpAttributes(_selectedGridEntry, gridEntry); 4294_selectedGridEntry?.HasFocus = false; 4313if (_selectedRow != row || (_selectedGridEntry is not null && !gridEntry.Equals(_selectedGridEntry))) 4395GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4401_selectedGridEntry?.HasFocus = FocusInside; 4418if (_selectedGridEntry != oldSelectedGridEntry) 4420OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry, _selectedGridEntry); 4499if (_selectedGridEntry is not null && IsAccessibilityObjectCreated) 4503_selectedGridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( 4510GridEntry? selectedEntry = _selectedGridEntry; 4564_selectedRow = GetRowFromGridEntry(_selectedGridEntry); 4618GridEntry? currentEntry = _selectedGridEntry; 4620if (_selectedGridEntry is null && _selectedRow != -1) 4715entry = _selectedGridEntry!; 4730GridEntry? currentEntry = _selectedGridEntry; 4732if (_selectedGridEntry is null && _selectedRow != -1) 4782if (_selectedGridEntry is null) 4788SelectGridEntry(_selectedGridEntry, pageIn: true); 4961SelectGridEntry(_selectedGridEntry, pageIn: true); 5034SelectGridEntry(_selectedGridEntry, pageIn: true); 5075UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 5339if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16_selectedItemTree = GetGridEntryHierarchy(gridView._selectedGridEntry);