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