5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
999_selectedGridEntry = null; 4023_selectedGridEntry = null; 4063_selectedGridEntry = GetGridEntryFromRow(_selectedRow); 4289_selectedGridEntry = gridEntry; 4385_selectedGridEntry = gridEntry;
78 references to _selectedGridEntry
System.Windows.Forms (78)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (77)
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; 2573SelectGridEntry(_selectedGridEntry, pageIn: false); 2644if (_selectedGridEntry is not null) 2646string currentTextValue = _selectedGridEntry.GetPropertyTextValue(); 2920if (_selectedGridEntry is not null 2921&& _selectedGridEntry.Enumerable 2926ProcessEnumUpAndDown(_selectedGridEntry, keyCode, closeDropDown: false); 3134if (_selectedGridEntry is not null && _selectedGridEntry.Enumerable && EditTextBox.Focused && _selectedGridEntry.IsValueEditable) 3136int index = GetCurrentValueIndex(_selectedGridEntry); 3140object[] values = _selectedGridEntry.GetPropertyValueList(); 3156SelectGridEntry(_selectedGridEntry, pageIn: true); 3429bool setSelectTime = sender != _selectedGridEntry; 3472if (_selectedGridEntry is not null) 3474SelectGridEntry(_selectedGridEntry, true); 3488if (_selectedGridEntry is not null) 3490SelectGridEntry(_selectedGridEntry, true); 3609bool selectionVisible = _selectedGridEntry is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows; 3610SelectGridEntry(_selectedGridEntry, selectionVisible); 3624GridEntry? oldGridEntry = _selectedGridEntry; 3625if (_selectedGridEntry is not null) 3904else if (_selectedGridEntry is not null && _selectedGridEntry.Expandable) 3906SetExpand(_selectedGridEntry, !_selectedGridEntry.InternalExpanded); 3945GridEntry? selectedEntry = _selectedGridEntry; 4022UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 4154GridEntry? currentEntry = _selectedGridEntry; 4276UpdateHelpAttributes(_selectedGridEntry, gridEntry); 4279if (_selectedGridEntry is not null) 4281_selectedGridEntry.HasFocus = false; 4301if (_selectedRow != row || (_selectedGridEntry is not null && !gridEntry.Equals(_selectedGridEntry))) 4383GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4389if (_selectedGridEntry is not null) 4391_selectedGridEntry.HasFocus = FocusInside; 4409if (_selectedGridEntry != oldSelectedGridEntry) 4411OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry, _selectedGridEntry); 4490if (_selectedGridEntry is not null && IsAccessibilityObjectCreated) 4494_selectedGridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( 4501GridEntry? selectedEntry = _selectedGridEntry; 4555_selectedRow = GetRowFromGridEntry(_selectedGridEntry); 4609GridEntry? currentEntry = _selectedGridEntry; 4611if (_selectedGridEntry is null && _selectedRow != -1) 4706entry = _selectedGridEntry!; 4721GridEntry? currentEntry = _selectedGridEntry; 4723if (_selectedGridEntry is null && _selectedRow != -1) 4773if (_selectedGridEntry is null) 4779SelectGridEntry(_selectedGridEntry, pageIn: true); 4952SelectGridEntry(_selectedGridEntry, pageIn: true); 5025SelectGridEntry(_selectedGridEntry, pageIn: true); 5066UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 5333if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16_selectedItemTree = GetGridEntryHierarchy(gridView._selectedGridEntry);