2 writes to _dataConnectionState
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
80_dataConnectionState = new BitVector32(DATACONNECTIONSTATE_finishedAddNew); 1020_dataConnectionState = new BitVector32(DATACONNECTIONSTATE_finishedAddNew);
100 references to _dataConnectionState
System.Windows.Forms (100)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (100)
103public bool CancellingRowEdit => _dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]; 113get => _dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager]; 114set => _dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = value; 118_dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents]; 123_dataConnectionState[DATACONNECTIONSTATE_listWasReset]; 133return !_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] 134&& _dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager]; 139_dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent]; 142_dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges]; 148Debug.Assert(_dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]); 149return _dataConnectionState[DATACONNECTIONSTATE_restoreRow]; 164_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = false; 166_dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] = true; 173_dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] = false; 176_dataConnectionState[DATACONNECTIONSTATE_inAddNew] = true; 184_dataConnectionState[DATACONNECTIONSTATE_inAddNew] = false; 350_dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent] = true; 357_dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent] = false; 375_dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges] = true; 382_dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges] = false; 388Debug.Assert(!_dataConnectionState[DATACONNECTIONSTATE_inAddNew] || !_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew], 393if (_dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != _owner.AllowUserToAddRowsInternal) 395_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 412if (!_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && _owner.NewRowIndex == e.NewIndex) 417if (_dataConnectionState[DATACONNECTIONSTATE_inAddNew]) 424if (_dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew]) 445_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 451if (_dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]) 456else if (_dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] || 457_dataConnectionState[DATACONNECTIONSTATE_inAddNew]) 461_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 469_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = false; 475if (_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && CurrencyManager.List.Count == 0) 496if (_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && _dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView]) 502_dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = true; 513Debug.Assert(_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]); 523if (_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] 524&& _dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] 525&& _dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView]) 528_dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = false; 531else if (!_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] 532&& _dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit]) 536_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 544_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = false; 561_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = true; 568_dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 611_dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 664&& !_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] 672_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = false; 696if (_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl]) 716_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && // condition 2. 717!_dataConnectionState[DATACONNECTIONSTATE_inAddNew] && // condition 2. 726_dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = true; 734if (_dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew]) 744bool clearSelection = _dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] && !_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]; 753_dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = false; 785Debug.Assert(_dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]); 794_dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false; 821_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 824if (!_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]) 849_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = true; 851_dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = true; 858_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = false; 859_dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 866_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = true; 868_dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = true; 875_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = false; 876_dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 882_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1015_dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] = _owner.AllowUserToAddRowsInternal; 1024_dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = true; 1032if (_dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection]) 1041if (DataSource is ISupportInitializeNotification dsInit && _dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]) 1047_dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false; 1058_dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection] = true; 1069if (!_dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]) 1072_dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = true; 1100_dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection] = false; 1286_dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] = true; 1287_dataConnectionState[DATACONNECTIONSTATE_restoreRow] = restoreRow; 1316_dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] = false; 1321_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 1327_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1334_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1341if (_dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges]) 1352_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1357&& !_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] 1378_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1390if (!_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && !_owner.IsCurrentRowDirty) 1392if (!_dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]) 1398_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1405_dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1411_dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew] = true; 1423_dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew] = false; 1429_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 1552_dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = false; 1562_dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = true;