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