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)
103
public bool CancellingRowEdit =>
_dataConnectionState
[DATACONNECTIONSTATE_cancellingRowEdit];
113
get =>
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager];
114
set =>
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager] = value;
118
_dataConnectionState
[DATACONNECTIONSTATE_interestedInRowEvents];
123
_dataConnectionState
[DATACONNECTIONSTATE_listWasReset];
133
return !
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl]
134
&&
_dataConnectionState
[DATACONNECTIONSTATE_positionChangingInCurrencyManager];
139
_dataConnectionState
[DATACONNECTIONSTATE_processingListChangedEvent];
142
_dataConnectionState
[DATACONNECTIONSTATE_processingMetaDataChanges];
148
Debug.Assert(
_dataConnectionState
[DATACONNECTIONSTATE_cancellingRowEdit]);
149
return
_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;
388
Debug.Assert(!
_dataConnectionState
[DATACONNECTIONSTATE_inAddNew] || !
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew],
393
if (
_dataConnectionState
[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != _owner.AllowUserToAddRowsInternal)
395
_dataConnectionState
[DATACONNECTIONSTATE_listWasReset] = true;
412
if (!
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew] && _owner.NewRowIndex == e.NewIndex)
417
if (
_dataConnectionState
[DATACONNECTIONSTATE_inAddNew])
424
if (
_dataConnectionState
[DATACONNECTIONSTATE_rowValidatingInAddNew])
445
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew] = true;
451
if (
_dataConnectionState
[DATACONNECTIONSTATE_cancellingRowEdit])
456
else if (
_dataConnectionState
[DATACONNECTIONSTATE_inEndCurrentEdit] ||
457
_dataConnectionState
[DATACONNECTIONSTATE_inAddNew])
461
_dataConnectionState
[DATACONNECTIONSTATE_listWasReset] = true;
469
_dataConnectionState
[DATACONNECTIONSTATE_listWasReset] = false;
475
if (
_dataConnectionState
[DATACONNECTIONSTATE_inDeleteOperation] && CurrencyManager.List.Count == 0)
496
if (
_dataConnectionState
[DATACONNECTIONSTATE_inDeleteOperation] &&
_dataConnectionState
[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView])
502
_dataConnectionState
[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = true;
513
Debug.Assert(
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew]);
523
if (
_dataConnectionState
[DATACONNECTIONSTATE_inDeleteOperation]
524
&&
_dataConnectionState
[DATACONNECTIONSTATE_itemAddedInDeleteOperation]
525
&&
_dataConnectionState
[DATACONNECTIONSTATE_didNotDeleteRowFromDataGridView])
528
_dataConnectionState
[DATACONNECTIONSTATE_itemAddedInDeleteOperation] = false;
531
else 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;
696
if (
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl])
716
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew] && // condition 2.
717
!
_dataConnectionState
[DATACONNECTIONSTATE_inAddNew] && // condition 2.
726
_dataConnectionState
[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = true;
734
if (
_dataConnectionState
[DATACONNECTIONSTATE_rowValidatingInAddNew])
744
bool clearSelection =
_dataConnectionState
[DATACONNECTIONSTATE_cancellingRowEdit] && !
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew];
753
_dataConnectionState
[DATACONNECTIONSTATE_positionChangingInCurrencyManager] = false;
785
Debug.Assert(
_dataConnectionState
[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]);
794
_dataConnectionState
[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false;
821
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true;
824
if (!
_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;
1032
if (
_dataConnectionState
[DATACONNECTIONSTATE_dataConnection_inSetDataConnection])
1041
if (DataSource is ISupportInitializeNotification dsInit &&
_dataConnectionState
[DATACONNECTIONSTATE_dataSourceInitializedHookedUp])
1047
_dataConnectionState
[DATACONNECTIONSTATE_dataSourceInitializedHookedUp] = false;
1058
_dataConnectionState
[DATACONNECTIONSTATE_dataConnection_inSetDataConnection] = true;
1069
if (!
_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;
1341
if (
_dataConnectionState
[DATACONNECTIONSTATE_processingMetaDataChanges])
1352
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = true;
1357
&& !
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheCurrencyManager]
1378
_dataConnectionState
[DATACONNECTIONSTATE_doNotChangePositionInTheDataGridViewControl] = false;
1390
if (!
_dataConnectionState
[DATACONNECTIONSTATE_finishedAddNew] && !_owner.IsCurrentRowDirty)
1392
if (!
_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;