5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
1022_selectedGridEntry = null; 4073_selectedGridEntry = null; 4113_selectedGridEntry = GetGridEntryFromRow(_selectedRow); 4336_selectedGridEntry = gridEntry; 4432_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; 504get => _selectedGridEntry; 1021_selectedGridEntry?.Dispose(); 1036else if (_selectedGridEntry is not null) 1038Clipboard.SetDataObject(_selectedGridEntry.GetPropertyTextValue()); 1584if (_selectedGridEntry is not null) 1591return !_selectedGridEntry.Expandable; 2219if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2221_selectedGridEntry.HasFocus = true; 2222SelectGridEntry(_selectedGridEntry, pageIn: false); 2229if (_selectedGridEntry is not null && _selectedGridEntry.GetValueOwner() is not null) 2231UpdateHelpAttributes(oldEntry: null, _selectedGridEntry); 2314if (index < 0 || _selectedGridEntry is null) 2354_selectedGridEntry?.OnValueReturnKey(); 2442if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2444_selectedGridEntry.HasFocus = true; 2612SelectGridEntry(_selectedGridEntry, pageIn: false); 2688if (_selectedGridEntry is not null) 2690string currentTextValue = _selectedGridEntry.GetPropertyTextValue(); 2964if (_selectedGridEntry is not null 2965&& _selectedGridEntry.Enumerable 2970ProcessEnumUpAndDown(_selectedGridEntry, keyCode, closeDropDown: false); 3178if (_selectedGridEntry is not null && _selectedGridEntry.Enumerable && EditTextBox.Focused && _selectedGridEntry.IsValueEditable) 3180int index = GetCurrentValueIndex(_selectedGridEntry); 3184object[] values = _selectedGridEntry.GetPropertyValueList(); 3206SelectGridEntry(_selectedGridEntry, pageIn: true); 3479bool setSelectTime = sender != _selectedGridEntry; 3522if (_selectedGridEntry is not null) 3524SelectGridEntry(_selectedGridEntry, true); 3538if (_selectedGridEntry is not null) 3540SelectGridEntry(_selectedGridEntry, true); 3659bool selectionVisible = _selectedGridEntry is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows; 3660SelectGridEntry(_selectedGridEntry, selectionVisible); 3674GridEntry? oldGridEntry = _selectedGridEntry; 3675if (_selectedGridEntry is not null) 3954else if (_selectedGridEntry is not null && _selectedGridEntry.Expandable) 3956SetExpand(_selectedGridEntry, !_selectedGridEntry.InternalExpanded); 3995GridEntry? selectedEntry = _selectedGridEntry; 4072UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 4204GridEntry? currentEntry = _selectedGridEntry; 4326UpdateHelpAttributes(_selectedGridEntry, gridEntry); 4329_selectedGridEntry?.HasFocus = false; 4348if (_selectedRow != row || (_selectedGridEntry is not null && !gridEntry.Equals(_selectedGridEntry))) 4430GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4436_selectedGridEntry?.HasFocus = FocusInside; 4453if (_selectedGridEntry != oldSelectedGridEntry) 4455OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry, _selectedGridEntry); 4534if (_selectedGridEntry is not null && IsAccessibilityObjectCreated) 4538_selectedGridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( 4545GridEntry? selectedEntry = _selectedGridEntry; 4599_selectedRow = GetRowFromGridEntry(_selectedGridEntry); 4653GridEntry? currentEntry = _selectedGridEntry; 4655if (_selectedGridEntry is null && _selectedRow != -1) 4750entry = _selectedGridEntry!; 4765GridEntry? currentEntry = _selectedGridEntry; 4767if (_selectedGridEntry is null && _selectedRow != -1) 4817if (_selectedGridEntry is null) 4823SelectGridEntry(_selectedGridEntry, pageIn: true); 4996SelectGridEntry(_selectedGridEntry, pageIn: true); 5069SelectGridEntry(_selectedGridEntry, pageIn: true); 5110UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 5374if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16_selectedItemTree = GetGridEntryHierarchy(gridView._selectedGridEntry);