2 writes to dataConnectionState
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (2)
87this.dataConnectionState = new BitVector32(DATACONNECTIONSTATE_finishedAddNew); 1112this.dataConnectionState = new BitVector32(DATACONNECTIONSTATE_finishedAddNew);
100 references to dataConnectionState
System.Windows.Forms (100)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (100)
141return this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]; 173return this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager]; 177this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = value; 185return this.dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents]; 208return this.dataConnectionState[DATACONNECTIONSTATE_listWasReset]; 219return !this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] && 220this.dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager]; 228return this.dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent]; 236return this.dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges]; 244Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]); 245return this.dataConnectionState[DATACONNECTIONSTATE_restoreRow]; 260this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = false; 262this.dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] = true; 269this.dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] = false; 272this.dataConnectionState[DATACONNECTIONSTATE_inAddNew] = true; 280this.dataConnectionState[DATACONNECTIONSTATE_inAddNew] = false; 454this.dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent] = true; 461this.dataConnectionState[DATACONNECTIONSTATE_processingListChangedEvent] = false; 479this.dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges] = true; 486this.dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges] = false; 491Debug.Assert(!this.dataConnectionState[DATACONNECTIONSTATE_inAddNew] || !this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew], 496if (this.dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != this.owner.AllowUserToAddRowsInternal) 498this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 514if (!this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && this.owner.newRowIndex == e.NewIndex) 519if (this.dataConnectionState[DATACONNECTIONSTATE_inAddNew]) 526if (this.dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew]) 546this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 552if (this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]) 557else if (this.dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit] || 558this.dataConnectionState[DATACONNECTIONSTATE_inAddNew]) 562this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 570this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = false; 573else if (this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && this.currencyManager.List.Count == 0) 592if (this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView]) 598this.dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = true; 609Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]); 619if (this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && 620this.dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] && 621this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView]) 624this.dataConnectionState[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = false; 627else if (!this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && 628this.dataConnectionState[DATACONNECTIONSTATE_inEndCurrentEdit]) 632this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 640this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = false; 652this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = true; 659this.dataConnectionState[DATACONNECTIONSTATE_listWasReset] = true; 699this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 748!this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] && 756this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = false; 780if (this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl]) 800this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && // condition 2. 801!this.dataConnectionState[DATACONNECTIONSTATE_inAddNew] && // condition 2. 812this.dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = true; 820if (this.dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew]) 830bool clearSelection = this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] && !this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]; 839this.dataConnectionState[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = false; 871Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]); 881this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false; 908this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 911if (!this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]) 935this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = true; 937this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = true; 944this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = false; 945this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 952this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = true; 954this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = true; 961this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] = false; 962this.dataConnectionState[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView] = false; 968this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1106this.dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] = this.owner.AllowUserToAddRowsInternal; 1116this.dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = true; 1124if (this.dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection]) 1137if (dsInit != null && this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]) 1143this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false; 1154this.dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection] = true; 1165if (!this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]) 1168this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = true; 1195this.dataConnectionState[DATACONNECTIONSTATE_dataConnection_inSetDataConnection] = false; 1385this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] = true; 1386this.dataConnectionState[DATACONNECTIONSTATE_restoreRow] = restoreRow; 1415this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit] = false; 1420this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 1426this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1433this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1440if (this.dataConnectionState[DATACONNECTIONSTATE_processingMetaDataChanges]) 1451this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1455!this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] && 1481this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1493if (!this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && !this.owner.IsCurrentRowDirty) 1495if (!this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]) 1501this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true; 1508this.dataConnectionState[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false; 1514this.dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew] = true; 1530this.dataConnectionState[DATACONNECTIONSTATE_rowValidatingInAddNew] = false; 1536this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] = true; 1663this.dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = false; 1673this.dataConnectionState[DATACONNECTIONSTATE_interestedInRowEvents] = true;