Base:
property
Count
System.Windows.Forms.BindingManagerBase.Count
55 references to Count
System.Windows.Forms (55)
winforms\Managed\System\WinForms\BindingSource.cs (4)
229return currencyManager.Count > 0 ? currencyManager.Current : null; 1056if (cm.Count > 0) { 1090currentItemChanged = ((null == lastCurrentItem) || (cm.Count == 0) || (lastCurrentItem != cm.Current) || (this.Position >= this.Count)); 1093lastCurrentItem = cm.Count > 0 ? cm.Current : null;
winforms\Managed\System\WinForms\ComboBox.cs (2)
3030if (this.DataManager != null && this.DataManager.Count != -1) { 3031newItems = new object[this.DataManager.Count];
winforms\Managed\System\WinForms\CurrencyManager.cs (7)
319if (Count > 0) { 350if ((newPosition < 0 || newPosition >= Count) && this.IsBinding) { 377this.listposition = Math.Min(newPosition, Count - 1); 460if (Count > 0) { 703ChangeRecordState(Math.Min(listposition, Count - 1), true, false, true, false); 793if (Count > 0) { 841if ((e.Index == listposition || (e.Index == -1 && Position < Count)) && !inChangeRecordState)
winforms\Managed\System\WinForms\DataGrid.cs (26)
1360int nDataGridRows = listManager.Count; 1365for (int r = 0; r < listManager.Count; r++) { 1385nDataGridRows = listManager.Count; 3138currentRow = Math.Min(currentRow, this.listManager.Count); 3239if (this.DataGridRowsLength > this.listManager.Count + (policy.AllowAdd?1:0) && !gridState[GRIDSTATE_inDeleteRow]) { 3260for (int i = 0; i < this.listManager.Count; i++) 4772int rowCount = listManager.Count; 5056int rowCount = listManager.Count; 5188if (listManager.Count == 0) 5720dgs.DataGridRowsLength = childLM.Count + (policy.AllowAdd ? 1 : 0); 7514if (currentRow < ListManager.Count) 7577int currentRowsCount = this.listManager == null ? 0 : this.listManager.Count; 7609if (this.listManager != null && currentRowsCount == this.listManager.Count + rowsDeleted) { 7618if (this.listManager != null && currentRowsCount != this.listManager.Count + rowsDeleted) { 7729Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7762Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7770Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7776Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7807Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7846Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 7859Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 8071Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 8074Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 8092this.currentRow = this.listManager.Count == 0 ? 0 : this.listManager.Position; 8126Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource"); 8129Debug.Assert(ListManager.Position == CurrentCell.RowNumber || listManager.Count == 0, "current row out of ssync with DataSource");
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
2695else if (dataConnection.CurrencyManager.Count <= rowIndex) 4626else if (dataConnection.CurrencyManager.Count <= rowIndex)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1296if (dataManager != null && dataManager.Count != -1) 1298object[] newItems = new object[dataManager.Count];
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (5)
466this.lastListCount = this.currencyManager.Count; 543} while (DataBoundRowsCount() < this.currencyManager.Count); 805this.currencyManager.Count == DataBoundRowsCount() + 1) // condition 6. 833clearSelection |= this.lastListCount == -1 || this.lastListCount == this.currencyManager.Count; 1202this.lastListCount = this.currencyManager.Count;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
3396if (this.dataConnection.CurrencyManager.Count <= this.ptCurrentCell.Y)
winforms\Managed\System\WinForms\ListBindingHelper.cs (1)
78bool currentKnown = (cm != null && cm.Position >= 0 && cm.Position <= cm.Count - 1);
winforms\Managed\System\WinForms\ListBox.cs (2)
1993if (this.DataManager != null && this.DataManager.Count != -1) { 1994newItems = new object[this.DataManager.Count];
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (3)
146if (curManager.Count > 0) { 149listposition = (Count > 0 ? 0 : -1); 177listposition = (Count > 0 ? 0 : -1);