6 writes to currentCol
System.Windows.Forms (6)
winforms\Managed\System\WinForms\DataGrid.cs (5)
970currentCol = newCol; 1081currentCol = currentColSaved; 1105currentCol = newCol; 3689currentCol = currentColSaved; 8825currentCol = 0;
winforms\Managed\System\WinForms\DataGridState.cs (1)
132dataGrid.currentCol = CurrentCol;
34 references to currentCol
System.Windows.Forms (34)
winforms\Managed\System\WinForms\DataGrid.cs (33)
899return new DataGridCell(currentRow, currentCol); 906if (value.RowNumber == currentRow && value.ColumnNumber == currentCol) 915int currentColSaved = currentCol; 947if (currentCol != newCol) { 1112EnsureVisible(currentRow, currentCol); 1146currentCellAccIndex += (this.currentRow * this.myGridTable.GridColumnStyles.Count) + this.currentCol; 1179CurrentCell = new DataGridCell(value, currentCol); 2272if (currentCol >= firstVisibleCol && currentCol < firstVisibleCol + numVisibleCols - 1 && (gridState[GRIDSTATE_isEditing] || gridState[GRIDSTATE_isNavigating])) 3244CurrentCell = new DataGridCell(listManager.Position, currentCol); 3671int currentColSaved = currentCol; 4000if (coll != null && currentCol > 0 && currentCol < coll.Count) { 4001if (!coll[currentCol].ReadOnly) 4101CurrentCell = new DataGridCell(location.row, currentCol); 4173EnsureVisible(currentRow, currentCol); 5895", currentCol = " + currentCol.ToString(CultureInfo.InvariantCulture) + (displayText != null ? ", displayText= " + displayText : "")); 5916editColumn = myGridTable.GridColumnStyles[currentCol]; 5923currentCol < firstVisibleCol || currentCol > firstVisibleCol + numVisibleCols - 1 || 5924(currentCol == firstVisibleCol && negOffset != 0)) 5930cellBounds = GetCellBounds(currentRow, currentCol); 6033if (bounds.IsEmpty && this.editColumn is DataGridTextBoxColumn && this.currentRow != -1 && this.currentCol != -1) { 6037Rectangle editBounds = this.GetCellBounds(this.currentRow, this.currentCol); 7517if (currentCol >= 0 && currentCol < columns.Count) 7519DataGridColumnStyle column = columns[currentCol]; 7985if (currentCol == firstColumnMarkedVisible && currentRow != 0) 7993int newCol = MoveLeftRight(this.myGridTable.GridColumnStyles, currentCol, false); 8017if (currentCol == lastColumnMarkedVisible && currentRow != DataGridRowsLength - 1) 8024int newCol = MoveLeftRight(this.myGridTable.GridColumnStyles, this.currentCol, true); 8447int nextCol = MoveLeftRight(cols, currentCol, true); // true for going right; 8467int prevCol = MoveLeftRight(cols, currentCol, false); // false for going left
winforms\Managed\System\WinForms\DataGridState.cs (1)
104this.CurrentCol = dataGrid.currentCol;