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