5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
1023_selectedGridEntry = null; 4062_selectedGridEntry = null; 4102_selectedGridEntry = GetGridEntryFromRow(_selectedRow); 4325_selectedGridEntry = gridEntry; 4421_selectedGridEntry = gridEntry;
76 references to _selectedGridEntry
System.Windows.Forms (76)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (75)
159=> _selectedGridEntry is not null 160&& (EditTextBox.Focused || !string.IsNullOrEmpty(_selectedGridEntry.GetPropertyTextValue())); 164public bool CanCut => CanCopy && _selectedGridEntry is not null && _selectedGridEntry.IsTextEditable; 168public bool CanPaste => _selectedGridEntry is not null && _selectedGridEntry.IsTextEditable; 505get => _selectedGridEntry; 1022_selectedGridEntry?.Dispose(); 1037else if (_selectedGridEntry is not null) 1039Clipboard.SetDataObject(_selectedGridEntry.GetPropertyTextValue()); 1579if (_selectedGridEntry is not null) 1586return !_selectedGridEntry.Expandable; 2214if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2216_selectedGridEntry.HasFocus = true; 2217SelectGridEntry(_selectedGridEntry, pageIn: false); 2224if (_selectedGridEntry is not null && _selectedGridEntry.GetValueOwner() is not null) 2226UpdateHelpAttributes(oldEntry: null, _selectedGridEntry); 2309if (index < 0 || _selectedGridEntry is null) 2349_selectedGridEntry?.OnValueReturnKey(); 2437if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2439_selectedGridEntry.HasFocus = true; 2607SelectGridEntry(_selectedGridEntry, pageIn: false); 2683if (_selectedGridEntry is not null) 2685string currentTextValue = _selectedGridEntry.GetPropertyTextValue(); 2959if (_selectedGridEntry is not null 2960&& _selectedGridEntry.Enumerable 2965ProcessEnumUpAndDown(_selectedGridEntry, keyCode, closeDropDown: false); 3173if (_selectedGridEntry is not null && _selectedGridEntry.Enumerable && EditTextBox.Focused && _selectedGridEntry.IsValueEditable) 3175int index = GetCurrentValueIndex(_selectedGridEntry); 3179object[] values = _selectedGridEntry.GetPropertyValueList(); 3195SelectGridEntry(_selectedGridEntry, pageIn: true); 3468bool setSelectTime = sender != _selectedGridEntry; 3511if (_selectedGridEntry is not null) 3513SelectGridEntry(_selectedGridEntry, true); 3527if (_selectedGridEntry is not null) 3529SelectGridEntry(_selectedGridEntry, true); 3648bool selectionVisible = _selectedGridEntry is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows; 3649SelectGridEntry(_selectedGridEntry, selectionVisible); 3663GridEntry? oldGridEntry = _selectedGridEntry; 3664if (_selectedGridEntry is not null) 3943else if (_selectedGridEntry is not null && _selectedGridEntry.Expandable) 3945SetExpand(_selectedGridEntry, !_selectedGridEntry.InternalExpanded); 3984GridEntry? selectedEntry = _selectedGridEntry; 4061UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 4193GridEntry? currentEntry = _selectedGridEntry; 4315UpdateHelpAttributes(_selectedGridEntry, gridEntry); 4318_selectedGridEntry?.HasFocus = false; 4337if (_selectedRow != row || (_selectedGridEntry is not null && !gridEntry.Equals(_selectedGridEntry))) 4419GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4425_selectedGridEntry?.HasFocus = FocusInside; 4442if (_selectedGridEntry != oldSelectedGridEntry) 4444OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry, _selectedGridEntry); 4523if (_selectedGridEntry is not null && IsAccessibilityObjectCreated) 4527_selectedGridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( 4534GridEntry? selectedEntry = _selectedGridEntry; 4588_selectedRow = GetRowFromGridEntry(_selectedGridEntry); 4642GridEntry? currentEntry = _selectedGridEntry; 4644if (_selectedGridEntry is null && _selectedRow != -1) 4739entry = _selectedGridEntry!; 4754GridEntry? currentEntry = _selectedGridEntry; 4756if (_selectedGridEntry is null && _selectedRow != -1) 4806if (_selectedGridEntry is null) 4812SelectGridEntry(_selectedGridEntry, pageIn: true); 4985SelectGridEntry(_selectedGridEntry, pageIn: true); 5058SelectGridEntry(_selectedGridEntry, pageIn: true); 5099UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 5363if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16_selectedItemTree = GetGridEntryHierarchy(gridView._selectedGridEntry);