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