1 write to _dataGridViewState1
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
393_dataGridViewState1 = new BitVector32(0x00000000);
140 references to _dataGridViewState1
System.Windows.Forms (140)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (47)
397_dataGridViewState1[State1_ColumnHeadersVisible 434_dataGridViewState1[State1_MultiSelect] = true; 650get => _dataGridViewState1[State1_AllowUserToAddRows]; 655_dataGridViewState1[State1_AllowUserToAddRows] = value; 683get => _dataGridViewState1[State1_AllowUserToDeleteRows]; 688_dataGridViewState1[State1_AllowUserToDeleteRows] = value; 713return _dataGridViewState1[State1_AllowUserToOrderColumns]; 719_dataGridViewState1[State1_AllowUserToOrderColumns] = value; 837get => _dataGridViewState1[State1_AutoGenerateColumns]; 840if (_dataGridViewState1[State1_AutoGenerateColumns] != value) 842_dataGridViewState1[State1_AutoGenerateColumns] = value; 861get => _dataGridViewState1[State1_IsAutoSized]; 865_dataGridViewState1[State1_IsAutoSized] = value; 1530_dataGridViewState1[State1_AmbientColumnHeadersFont] = value?.Font == base.Font; 1557_dataGridViewState1[State1_AmbientColumnHeadersFont] = true; 1645get => _dataGridViewState1[State1_ColumnHeadersVisible]; 1669_dataGridViewState1[State1_ColumnHeadersVisible] = value; 1998_dataGridViewState1[State1_AmbientForeColor] = true; 2014_dataGridViewState1[State1_AmbientFont] = true; 2043_dataGridViewState1[State1_AmbientFont] = value?.Font == base.Font; 2070_dataGridViewState1[State1_AmbientFont] = true; 2071_dataGridViewState1[State1_AmbientForeColor] = true; 2107_dataGridViewState1[State1_AmbientRowHeadersFont] = true; 2856public bool IsCurrentCellDirty => _dataGridViewState1[State1_EditedCellChanged]; 2862if (value != _dataGridViewState1[State1_EditedCellChanged]) 2864_dataGridViewState1[State1_EditedCellChanged] = value; 2872=> EditingControl is not null || _dataGridViewState1[State1_CurrentCellInEditMode]; 2882return _dataGridViewState1[State1_EditedRowChanged] || IsCurrentCellDirty; 2886QuestionEventArgs qe = new(_dataGridViewState1[State1_EditedRowChanged] || IsCurrentCellDirty); 2897if (value != _dataGridViewState1[State1_EditedRowChanged]) 2899_dataGridViewState1[State1_EditedRowChanged] = value; 2917|| _dataGridViewState1[State1_NewRowEdited]; 2996get => _dataGridViewState1[State1_MultiSelect]; 3002_dataGridViewState1[State1_MultiSelect] = value; 3062get => _dataGridViewState1[State1_ReadOnly]; 3065if (value == _dataGridViewState1[State1_ReadOnly]) 3089_dataGridViewState1[State1_ReadOnly] = value; 3317_dataGridViewState1[State1_AmbientRowHeadersFont] = value?.Font == base.Font; 3345get => _dataGridViewState1[State1_RowHeadersVisible]; 3358_dataGridViewState1[State1_RowHeadersVisible] = value; 3977get => _dataGridViewState1[State1_StandardTab]; 3980if (_dataGridViewState1[State1_StandardTab] != value) 3982_dataGridViewState1[State1_StandardTab] = value; 4079public Cursor? UserSetCursor => _dataGridViewState1[State1_CustomCursorSet] 4141get => _dataGridViewState1[State1_VirtualMode]; 4144if (_dataGridViewState1[State1_VirtualMode] != value) 4146_dataGridViewState1[State1_VirtualMode] = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (93)
75_dataGridViewState1[State1_NewRowCreatedByEditing] = createdByEditing; 2644_dataGridViewState1[State1_CurrentCellInEditMode] = true; 3081_dataGridViewState1[State1_IgnoringEditingChanges] = true; 3089Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 3106_dataGridViewState1[State1_IgnoringEditingChanges] = false; 3177Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 3187|| (_dataGridViewState1[State1_NewRowEdited] && !_dataGridViewState1[State1_EditedRowChanged])) 3189bool discardNewRow = _dataGridViewState1[State1_NewRowEdited]; 3201DataConnection!.CancelRowEdit(restoreRow: true, addNewFinished: _dataGridViewState1[State1_NewRowEdited]); 3250Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 3264if (!IsCurrentRowDirty && _ptCurrentCell.Y == NewRowIndex - 1 && _dataGridViewState1[State1_NewRowCreatedByEditing]) 3862|| (_dataGridViewState1[State1_CurrentCellInEditMode] && ((IDataGridViewEditingCell)CurrentCellInternal).EditingCellValueChanged)) == IsCurrentCellDirty 3863|| _dataGridViewState1[State1_IgnoringEditingChanges]); 3905Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 3943Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 5988Debug.Assert(!_dataGridViewState1[State1_CustomCursorSet]); 5989_dataGridViewState1[State1_CustomCursorSet] = true; 6008if (_dataGridViewState1[State1_CustomCursorSet]) 6010_dataGridViewState1[State1_CustomCursorSet] = false; 6222_dataGridViewState1[State1_EditingControlChanging] = true; 6229_dataGridViewState1[State1_EditingControlChanging] = false; 6261Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 6262_dataGridViewState1[State1_CurrentCellInEditMode] = false; 9684_dataGridViewState1[State1_IgnoringEditingChanges] = true; 9711_dataGridViewState1[State1_IgnoringEditingChanges] = false; 9725_dataGridViewState1[State1_EditingControlChanging] = true; 9726_dataGridViewState1[State1_IgnoringEditingChanges] = true; 9743_dataGridViewState1[State1_EditingControlChanging] = false; 9744_dataGridViewState1[State1_IgnoringEditingChanges] = false; 10051if (EditingControl is not null && _dataGridViewState1[State1_ForwardCharMessage]) 10432&& !_dataGridViewState1[State1_EditingControlHidden] 10500&& !_dataGridViewState1[State1_EditingControlHidden] 10515if (!_dataGridViewState1[State1_IgnoringEditingChanges]) 12670if (!_dataGridViewState1[State1_ScrolledSinceMouseDown] 12859if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.DataGridView) != 0 && _dataGridViewState1[State1_AmbientFont]) 12861_dataGridViewState1[State1_AmbientFont] = false; 12864if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.ColumnHeaders) != 0 && _dataGridViewState1[State1_AmbientColumnHeadersFont]) 12866_dataGridViewState1[State1_AmbientColumnHeadersFont] = false; 12869if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.RowHeaders) != 0 && _dataGridViewState1[State1_AmbientRowHeadersFont]) 12871_dataGridViewState1[State1_AmbientRowHeadersFont] = false; 12877if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.DataGridView) != 0 && _dataGridViewState1[State1_AmbientForeColor]) 12879_dataGridViewState1[State1_AmbientForeColor] = false; 15011_dataGridViewState1[State1_LeavingWithTabKey] = false; 15085if (_dataGridViewState1[State1_AmbientColumnHeadersFont] && ColumnHeadersDefaultCellStyle.Font != base.Font) 15088_dataGridViewState1[State1_AmbientColumnHeadersFont] = true; 15093if (_dataGridViewState1[State1_AmbientRowHeadersFont] && RowHeadersDefaultCellStyle.Font != base.Font) 15096_dataGridViewState1[State1_AmbientRowHeadersFont] = true; 15101if (_dataGridViewState1[State1_AmbientFont] && DefaultCellStyle.Font != base.Font) 15104_dataGridViewState1[State1_AmbientFont] = true; 15119if (_dataGridViewState1[State1_AmbientForeColor] && DefaultCellStyle.ForeColor != base.ForeColor) 15122_dataGridViewState1[State1_AmbientForeColor] = true; 15535_dataGridViewState1[State1_TemporarilyResetCurrentCell] = true; 15788if (_dataGridViewState1[State1_EditingControlChanging]) 15812if (_ptCurrentCell.X > -1 && !_dataGridViewState1[State1_LeavingWithTabKey]) 15824if (!_dataGridViewState1[State1_LeavingWithTabKey]) 16147if (_dataGridViewState1[State1_CustomCursorSet]) 16149_dataGridViewState1[State1_CustomCursorSet] = false; 16225if (!_dataGridViewState1[State1_CustomCursorSet]) 16227_dataGridViewState1[State1_CustomCursorSet] = true; 16248if (!_dataGridViewState1[State1_CustomCursorSet]) 16250_dataGridViewState1[State1_CustomCursorSet] = true; 16257else if (_dataGridViewState1[State1_CustomCursorSet]) 16259_dataGridViewState1[State1_CustomCursorSet] = false; 16342_dataGridViewState1[State1_ScrolledSinceMouseDown] = false; 17025_dataGridViewState1[State1_TemporarilyResetCurrentCell] = false; 17080_dataGridViewState1[State1_TemporarilyResetCurrentCell] = true; 17247_dataGridViewState1[State1_TemporarilyResetCurrentCell] = false; 17295_dataGridViewState1[State1_TemporarilyResetCurrentCell] = true; 17656_dataGridViewState1[State1_NewRowEdited] = false; 17664_dataGridViewState1[State1_NewRowEdited] = true; 18762_dataGridViewState1[State1_NewRowCreatedByEditing] = false; 19043if (!_dataGridViewState1[State1_LeavingWithTabKey]) 19810_dataGridViewState1[State1_EditingControlChanging] = true; 19854_dataGridViewState1[State1_EditingControlHidden] = true; 19889setLocation || _dataGridViewState1[State1_EditingControlHidden], 19890setSize || _dataGridViewState1[State1_EditingControlHidden], 19898_dataGridViewState1[State1_EditingControlHidden] = false; 19909_dataGridViewState1[State1_EditingControlChanging] = false; 20108_dataGridViewState1[State1_LeavingWithTabKey] = true; 20128if (_dataGridViewState1[State1_LeavingWithTabKey] && Focused) 21907_dataGridViewState1[State1_ForwardCharMessage] = true; 21916else if (_dataGridViewState1[State1_ForwardCharMessage] 21919_dataGridViewState1[State1_ForwardCharMessage] = false; 25302Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 25494Debug.Assert(_dataGridViewState1[State1_CurrentCellInEditMode]); 26243_dataGridViewState1[State1_ScrolledSinceMouseDown] = true; 26358_dataGridViewState1[State1_ScrolledSinceMouseDown] = true; 26785if (_dataGridViewState1[State1_TemporarilyResetCurrentCell]) 26787_dataGridViewState1[State1_TemporarilyResetCurrentCell] = false; 26969&& !_dataGridViewState1[State1_LeavingWithTabKey] 27017&& !_dataGridViewState1[State1_TemporarilyResetCurrentCell] 27093if (_dataGridViewState1[State1_TemporarilyResetCurrentCell])