Base:
property
Position
System.Windows.Forms.BindingManagerBase.Position
12 writes to Position
System.Windows.Forms (12)
winforms\Managed\System\WinForms\BindingSource.cs (1)
424
currencyManager.
Position
= value;
winforms\Managed\System\WinForms\ComboBox.cs (1)
2727
this.DataManager.
Position
= this.SelectedIndex;
winforms\Managed\System\WinForms\DataGrid.cs (8)
1026
this.ListManager.
Position
= this.currentRow;
1062
ListManager.
Position
= currentRow;
1102
this.listManager.
Position
= newRow;
1740
this.listManager.
Position
= value;
1748
originalListManager.
Position
= value;
3032
listManager.
Position
= rowIndex;
3703
this.listManager.
Position
= currentRow;
7029
this.listManager.
Position
= source.RowNumber;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1460
this.currencyManager.
Position
= e.RowIndex;
winforms\Managed\System\WinForms\ListBox.cs (1)
1901
this.DataManager.
Position
= this.SelectedIndex;
93 references to Position
System.Windows.Forms (93)
winforms\Managed\System\WinForms\BindingSource.cs (2)
415
return currencyManager.
Position
;
419
if (currencyManager.
Position
!= value)
winforms\Managed\System\WinForms\BindToObject.cs (1)
181
cm[cm.
Position
] = value;
winforms\Managed\System\WinForms\ComboBox.cs (4)
2724
if (this.DataManager != null && DataManager.
Position
!= SelectedIndex) {
3058
this.SelectedIndex = this.DataManager.
Position
;
3307
SendMessage(NativeMethods.CB_SETCURSEL, DataManager.
Position
, 0);
3310
selectedIndex = DataManager.
Position
;
winforms\Managed\System\WinForms\CurrencyManager.cs (22)
160
return this[
Position
];
310
ChangeRecordState(list.Count - 1, (
Position
!= list.Count - 1), (
Position
!= list.Count - 1), true, true); // true for firingPositionChangeNotification
320
Object item = (
Position
>= 0 &&
Position
< list.Count) ? list[
Position
] : null;
331
iListWithCancelAddNewSupport.CancelNew(this.
Position
);
334
OnItemChanged(new ItemChangedEventArgs(
Position
));
335
if (this.
Position
!= -1) {
336
OnListChanged(new ListChangedEventArgs(ListChangedType.ItemChanged, this.
Position
));
464
Object item = (
Position
>= 0 &&
Position
< list.Count) ? list[
Position
] : null;
473
iListWithCancelAddNewSupport.EndNew(this.
Position
);
656
Debug.WriteLineIf(CompModSwitches.DataCursor.TraceVerbose, "System.ComponentModel.ListChangedType.Reset Position: " +
Position
+ " Count: " + list.Count);
734
ChangeRecordState(dbe.NewIndex, true, this.
Position
> -1 && this.
Position
< list.Count, true, false);
738
ChangeRecordState(dbe.OldIndex, true, this.
Position
> -1 && this.
Position
< list.Count, true, false);
794
Object item = list[
Position
];
841
if ((e.Index == listposition || (e.Index == -1 &&
Position
< Count)) && !inChangeRecordState)
969
ChangeRecordState(newPos, bound, (
Position
!= newPos), true, false);
winforms\Managed\System\WinForms\DataGrid.cs (44)
949
int currentListManagerPosition = this.ListManager.
Position
;
954
if (this.ListManager.
Position
!= currentListManagerPosition ||
961
this.currentRow = this.ListManager.
Position
;
978
int currentListManagerPosition = this.ListManager.
Position
;
983
if (this.ListManager.
Position
!= currentListManagerPosition ||
990
this.currentRow = this.ListManager.
Position
;
1007
if (currentRowSaved != listManager.
Position
) {
1059
Debug.Assert(ListManager.
Position
== currentRow || listManager.
Position
== -1, "the listManager should be positioned at the last row");
1082
Debug.Assert(currentRow == ListManager.
Position
|| listManager.
Position
== -1, "the position in the list manager (" + ListManager.
Position
+ ") is out of sync with the currentRow (" + currentRow + ")" + " and the exception is '" + errorMessage + "'");
1132
Debug.Assert(currentRow == ListManager.
Position
|| listManager.
Position
== -1, "the position in the list manager is out of sync with the currentRow");
1678
currentRow = listManager.
Position
== -1 ? 0 : listManager.
Position
;
1727
return this.listManager == null ? - 1 : this.listManager.
Position
;
1732
return originalListManager.
Position
;
3031
if (listManager.
Position
!= rowIndex)
3234
Debug.WriteLineIf(CompModSwitches.DataGridCursor.TraceVerbose, "DataGridCursor: DataSource_PositionChanged to " + listManager.
Position
.ToString(CultureInfo.InvariantCulture));
3243
if (this.ListManager.
Position
!= currentRow) {
3244
CurrentCell = new DataGridCell(listManager.
Position
, currentCol);
3690
Debug.Assert(currentRow == ListManager.
Position
|| listManager.
Position
== -1, "the position in the list manager (" + ListManager.
Position
+ ") is out of sync with the currentRow (" + currentRow + ")" + " and the exception is '" + errorMessage + "'");
6938
currentRow = this.ListManager.
Position
== -1 ? 0 : this.ListManager.
Position
;
7059
if (this.listManager.
Position
!= this.currentRow) {
7060
this.currentRow = listManager.
Position
== -1 ? 0 : listManager.
Position
;
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");
8832
currentRow = this.listManager.
Position
== -1 ? 0 : listManager.
Position
;
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
409
if (IsReadOnly() && isSelected && source.
Position
== rowNum) {
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1142
if (source.
Position
!= rowNum)
winforms\Managed\System\WinForms\DataGridState.cs (1)
137
if (this.DataGrid != null && this.ListManager.
Position
== e.Index) {
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (8)
802
this.currencyManager.
Position
> -1 && // condition 3.
803
this.currencyManager.
Position
== this.owner.NewRowIndex && // condition 4.
1331
int rowIndex = this.currencyManager.
Position
;
1390
if (this.currencyManager.
Position
>= 0 && this.currencyManager.
Position
< this.currencyManager.List.Count )
1402
if (this.currencyManager.
Position
>= 0 && this.currencyManager.
Position
< this.currencyManager.List.Count )
1456
this.currencyManager.
Position
!= e.RowIndex) // don't automatically force an EndCurrentEdit on the currency manager
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
15275
Debug.Assert(this.dataConnection.CurrencyManager.
Position
== this.ptCurrentCell.Y);
winforms\Managed\System\WinForms\ListBindingHelper.cs (2)
78
bool currentKnown = (cm != null && cm.
Position
>= 0 && cm.
Position
<= cm.Count - 1);
winforms\Managed\System\WinForms\ListBox.cs (4)
1895
if (this.DataManager != null && DataManager.
Position
!= SelectedIndex) {
1940
this.SelectedIndex = this.DataManager.
Position
;
2015
this.SelectedIndex = this.DataManager.
Position
;
2105
SendMessage(NativeMethods.LB_SETCURSEL, DataManager.
Position
, 0);
winforms\Managed\System\WinForms\ListControl.cs (2)
450
this.SelectedIndex = dataManager.
Position
;
461
this.SelectedIndex = this.dataManager.
Position
;