4 writes to currencyManager
System.Windows.Forms (4)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (4)
992
this.
currencyManager
= null;
1170
this.
currencyManager
= null;
1174
this.
currencyManager
= this.owner.BindingContext[this.dataSource, this.dataMember] as CurrencyManager;
1179
this.
currencyManager
= null;
77 references to currencyManager
System.Windows.Forms (77)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (77)
94
if (this.
currencyManager
!= null)
97
return (this.
currencyManager
.List is IBindingList) && this.
currencyManager
.AllowAdd && ((IBindingList)this.
currencyManager
.List).SupportsChangeNotification;
110
if (this.
currencyManager
!= null)
112
return this.
currencyManager
.AllowEdit;
125
if (this.
currencyManager
!= null)
128
return (this.
currencyManager
.List is IBindingList) && this.
currencyManager
.AllowRemove && ((IBindingList)this.
currencyManager
.List).SupportsChangeNotification;
149
return this.
currencyManager
;
193
if (this.
currencyManager
!= null)
195
return this.
currencyManager
.List;
251
if (this.
currencyManager
!= null)
254
if (!this.
currencyManager
.ShouldBind)
259
Debug.Assert(this.
currencyManager
.AllowAdd, "why did we call AddNew on the currency manager when the currency manager does not allow new rows?");
265
this.
currencyManager
.EndCurrentEdit();
276
this.
currencyManager
.AddNew();
305
if (this.
currencyManager
== null)
400
IBindingList ibl = this.
currencyManager
!= null ? this.
currencyManager
.List as IBindingList : null;
452
Debug.Assert(sender == this.
currencyManager
, "did we forget to unregister our ListChanged event handler?");
466
this.lastListCount = this.
currencyManager
.Count;
543
} while (DataBoundRowsCount() < this.
currencyManager
.Count);
573
else if (this.dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && this.
currencyManager
.List.Count == 0)
590
this.
currencyManager
.List.Count == (this.owner.AllowUserToAddRowsInternal ? this.owner.Rows.Count - 1 : this.owner.Rows.Count))
604
Debug.Assert(this.
currencyManager
.List.Count == 1);
625
Debug.Assert(this.
currencyManager
.List.Count == 0, "we deleted the row that the Child table forcefully added");
644
else if (this.
currencyManager
.List.Count == DataBoundRowsCount())
762
Debug.Assert(sender == this.
currencyManager
, "did we forget to unregister our events?");
802
this.
currencyManager
.Position > -1 && // condition 3.
803
this.
currencyManager
.Position == this.owner.NewRowIndex && // condition 4.
805
this.
currencyManager
.Count == DataBoundRowsCount() + 1) // condition 6.
822
IBindingList ibl = this.
currencyManager
.List as IBindingList;
833
clearSelection |= this.lastListCount == -1 || this.lastListCount == this.
currencyManager
.Count;
885
Debug.Assert(this.
currencyManager
!= null);
892
Debug.Assert(this.
currencyManager
!= null);
895
this.props = this.
currencyManager
.GetItemProperties();
915
if (this.owner.newRowIndex == this.
currencyManager
.List.Count)
923
Debug.Assert(this.owner.newRowIndex == this.
currencyManager
.List.Count - 1);
940
this.
currencyManager
.RemoveAt(rowIndex);
957
this.
currencyManager
.RemoveAt(rowIndex);
1061
IBindingList ibl = this.
currencyManager
!= null ? this.
currencyManager
.List as IBindingList : null;
1114
if (this.
currencyManager
!= null)
1184
if (this.
currencyManager
!= null)
1186
this.props = this.
currencyManager
.GetItemProperties();
1200
if (this.
currencyManager
!= null)
1202
this.lastListCount = this.
currencyManager
.Count;
1215
errInfo = this.
currencyManager
[rowIndex] as IDataErrorInfo;
1249
errInfo = this.
currencyManager
[rowIndex] as IDataErrorInfo;
1282
value = this.props[boundColumnIndex].GetValue(this.
currencyManager
[rowIndex]);
1331
int rowIndex = this.
currencyManager
.Position;
1390
if (this.
currencyManager
.Position >= 0 && this.
currencyManager
.Position < this.
currencyManager
.List.Count )
1392
currentItem = this.
currencyManager
.Current;
1395
this.
currencyManager
.CancelCurrentEdit();
1402
if (this.
currencyManager
.Position >= 0 && this.
currencyManager
.Position < this.
currencyManager
.List.Count )
1404
editableObject = this.
currencyManager
.Current as IEditableObject;
1446
if (!this.
currencyManager
.ShouldBind)
1456
this.
currencyManager
.Position != e.RowIndex) // don't automatically force an EndCurrentEdit on the currency manager
1460
this.
currencyManager
.Position = e.RowIndex;
1472
IEditableObject iEditObj = this.
currencyManager
.Current as IEditableObject;
1488
if (!this.
currencyManager
.ShouldBind)
1497
Debug.Assert(DataBoundRowsCount() == this.
currencyManager
.List.Count, "if the back end was changed while in AddNew the DGV should have updated its rows collection");
1518
this.
currencyManager
.EndCurrentEdit();
1557
IEditableObject iEditObj = this.
currencyManager
.Current as IEditableObject;
1597
this.props[boundColumnIndex].SetValue(this.
currencyManager
[rowIndex], value);
1659
if (this.
currencyManager
!= null)
1661
this.
currencyManager
.PositionChanged -= new EventHandler(currencyManager_PositionChanged);
1662
this.
currencyManager
.ListChanged -= new ListChangedEventHandler(currencyManager_ListChanged);
1669
if (this.
currencyManager
!= null)
1671
this.
currencyManager
.PositionChanged += new EventHandler(currencyManager_PositionChanged);
1672
this.
currencyManager
.ListChanged += new ListChangedEventHandler(currencyManager_ListChanged);