6 writes to _trackColumn
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
2486_trackColumn = index; 2497_trackColumn = columnIndex; 12202_trackColumn = hti._col; 13764_trackColumn = hti._col; 25841_trackColumn = -1; 25878_trackColumn = -1;
40 references to _trackColumn
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (40)
2976mouseX + _mouseBarOffset - Columns[_trackColumn].Thickness + 1, 2978Columns[_trackColumn].Thickness, 2988Columns[_trackColumn].Thickness, 3687if (_trackColumn != previousColumnIndex 3688&& !(previousColumnIndex == -1 && hti._col == _trackColumn) 3689&& (dataGridViewColumnNext is null || _trackColumn != dataGridViewColumnNext.Index)) 3698if (hti._col != _trackColumn) 6075Columns[_trackColumn].DisplayIndex = 0; 6077else if (Columns[_trackColumn].DisplayIndex > Columns[previousColumnIndex].DisplayIndex) 6079Columns[_trackColumn].DisplayIndex = Columns[previousColumnIndex].DisplayIndex + 1; 6083Columns[_trackColumn].DisplayIndex = Columns[previousColumnIndex].DisplayIndex; 6111delta = GetColumnXFromIndex(_trackColumn) - Columns[_trackColumn].Thickness - newX + 1; 6116delta = newX - (GetColumnXFromIndex(_trackColumn) + Columns[_trackColumn].Thickness) + 1; 6121int proposed = Columns[_trackColumn].Thickness + delta; 6122Debug.Assert(proposed >= Columns[_trackColumn].MinimumThickness); 6124Columns[_trackColumn].Thickness = proposed; 14140if (_trackColumnEdge >= 0 && (Columns.DisplayInOrder(_trackColumn, _trackColumnEdge) || _trackColumnEdge == _trackColumn) && Columns.DisplayInOrder(_trackColumnEdge, hti._col)) 14147else if (_trackColumnEdge >= 0 && Columns.DisplayInOrder(_trackColumn, _trackColumnEdge) && Columns.DisplayInOrder(hti._col, _trackColumnEdge) && (Columns.DisplayInOrder(_trackColumn, hti._col) || hti._col == _trackColumn)) 14154else if (_trackColumnEdge == -1 && Columns.DisplayInOrder(_trackColumn, hti._col)) 14156DataGridViewColumn? dataGridViewColumn = Columns.GetNextColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None); 14161else if (_trackColumnEdge >= 0 && (Columns.DisplayInOrder(_trackColumnEdge, _trackColumn) || _trackColumnEdge == _trackColumn) && Columns.DisplayInOrder(hti._col, _trackColumnEdge)) 14168else if (_trackColumnEdge >= 0 && Columns.DisplayInOrder(_trackColumnEdge, _trackColumn) && Columns.DisplayInOrder(_trackColumnEdge, hti._col) && (Columns.DisplayInOrder(hti._col, _trackColumn) || hti._col == _trackColumn)) 14175else if (_trackColumnEdge == -1 && Columns.DisplayInOrder(hti._col, _trackColumn)) 14177DataGridViewColumn? dataGridViewColumn = Columns.GetPreviousColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None); 14182else if (_trackColumnEdge >= 0 && Columns.DisplayInOrder(_trackColumn, _trackColumnEdge) && Columns.DisplayInOrder(hti._col, _trackColumn)) 14184DataGridViewColumn? dataGridViewColumn = Columns.GetNextColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None); 14187dataGridViewColumn = Columns.GetPreviousColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None); 14192else if (_trackColumnEdge >= 0 && Columns.DisplayInOrder(_trackColumn, hti._col) && Columns.DisplayInOrder(_trackColumnEdge, _trackColumn)) 14194DataGridViewColumn? dataGridViewColumn = Columns.GetPreviousColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None); 14197dataGridViewColumn = Columns.GetNextColumn(Columns[_trackColumn], DataGridViewElementStates.Visible, DataGridViewElementStates.None);