5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
1022_selectedGridEntry = null; 4061_selectedGridEntry = null; 4101_selectedGridEntry = GetGridEntryFromRow(_selectedRow); 4324_selectedGridEntry = gridEntry; 4420_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()); 1578if (_selectedGridEntry is not null) 1585return !_selectedGridEntry.Expandable; 2213if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2215_selectedGridEntry.HasFocus = true; 2216SelectGridEntry(_selectedGridEntry, pageIn: false); 2223if (_selectedGridEntry is not null && _selectedGridEntry.GetValueOwner() is not null) 2225UpdateHelpAttributes(oldEntry: null, _selectedGridEntry); 2308if (index < 0 || _selectedGridEntry is null) 2348_selectedGridEntry?.OnValueReturnKey(); 2436if (_selectedGridEntry is not null && GetRowFromGridEntry(_selectedGridEntry) != -1) 2438_selectedGridEntry.HasFocus = true; 2606SelectGridEntry(_selectedGridEntry, pageIn: false); 2682if (_selectedGridEntry is not null) 2684string currentTextValue = _selectedGridEntry.GetPropertyTextValue(); 2958if (_selectedGridEntry is not null 2959&& _selectedGridEntry.Enumerable 2964ProcessEnumUpAndDown(_selectedGridEntry, keyCode, closeDropDown: false); 3172if (_selectedGridEntry is not null && _selectedGridEntry.Enumerable && EditTextBox.Focused && _selectedGridEntry.IsValueEditable) 3174int index = GetCurrentValueIndex(_selectedGridEntry); 3178object[] values = _selectedGridEntry.GetPropertyValueList(); 3194SelectGridEntry(_selectedGridEntry, pageIn: true); 3467bool setSelectTime = sender != _selectedGridEntry; 3510if (_selectedGridEntry is not null) 3512SelectGridEntry(_selectedGridEntry, true); 3526if (_selectedGridEntry is not null) 3528SelectGridEntry(_selectedGridEntry, true); 3647bool selectionVisible = _selectedGridEntry is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows; 3648SelectGridEntry(_selectedGridEntry, selectionVisible); 3662GridEntry? oldGridEntry = _selectedGridEntry; 3663if (_selectedGridEntry is not null) 3942else if (_selectedGridEntry is not null && _selectedGridEntry.Expandable) 3944SetExpand(_selectedGridEntry, !_selectedGridEntry.InternalExpanded); 3983GridEntry? selectedEntry = _selectedGridEntry; 4060UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 4192GridEntry? currentEntry = _selectedGridEntry; 4314UpdateHelpAttributes(_selectedGridEntry, gridEntry); 4317_selectedGridEntry?.HasFocus = false; 4336if (_selectedRow != row || (_selectedGridEntry is not null && !gridEntry.Equals(_selectedGridEntry))) 4418GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4424_selectedGridEntry?.HasFocus = FocusInside; 4441if (_selectedGridEntry != oldSelectedGridEntry) 4443OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry, _selectedGridEntry); 4522if (_selectedGridEntry is not null && IsAccessibilityObjectCreated) 4526_selectedGridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( 4533GridEntry? selectedEntry = _selectedGridEntry; 4587_selectedRow = GetRowFromGridEntry(_selectedGridEntry); 4641GridEntry? currentEntry = _selectedGridEntry; 4643if (_selectedGridEntry is null && _selectedRow != -1) 4738entry = _selectedGridEntry!; 4753GridEntry? currentEntry = _selectedGridEntry; 4755if (_selectedGridEntry is null && _selectedRow != -1) 4805if (_selectedGridEntry is null) 4811SelectGridEntry(_selectedGridEntry, pageIn: true); 4984SelectGridEntry(_selectedGridEntry, pageIn: true); 5057SelectGridEntry(_selectedGridEntry, pageIn: true); 5098UpdateHelpAttributes(_selectedGridEntry, newEntry: null); 5362if (_selectedGridEntry is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16_selectedItemTree = GetGridEntryHierarchy(gridView._selectedGridEntry);