6 writes to FirstDisplayedScrollingCol
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2731DisplayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
4581DisplayedBandsInfo.FirstDisplayedScrollingCol = -1; 4631DisplayedBandsInfo.FirstDisplayedScrollingCol = DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4762DisplayedBandsInfo.FirstDisplayedScrollingCol = firstDisplayedScrollingCol; 10243DisplayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn(); 19735DisplayedBandsInfo.FirstDisplayedScrollingCol = -1;
77 references to FirstDisplayedScrollingCol
System.Windows.Forms (77)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (17)
2378else if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 2380firstDisplayedColumnIndex = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2393else if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 2395firstDisplayedColumnIndexDbg2 = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2441get => DisplayedBandsInfo.FirstDisplayedScrollingCol; 2475if (value == DisplayedBandsInfo.FirstDisplayedScrollingCol) 2503Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 2504Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol == value 2505|| Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, value)); 2509while (DisplayedBandsInfo.FirstDisplayedScrollingCol != value 2687int oldFirstVisibleScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2738&& DisplayedBandsInfo.FirstDisplayedScrollingCol > -1) 2746if (oldFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol) 2750else if (Columns.DisplayInOrder(oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol)) 2752scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 2756Debug.Assert(Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol)); 2757scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (60)
3624int firstDisplayedScrollingColumnIndex = DisplayedBandsInfo.FirstDisplayedScrollingCol; 4531Debug.Assert(newFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol); 4534int oldFirstVisibleScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 4537Debug.Assert(oldFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol); 4573int firstDisplayedScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 4764Debug.Assert((DisplayedBandsInfo.NumDisplayedScrollingCols > 0 && DisplayedBandsInfo.FirstDisplayedScrollingCol != -1) 4765|| (DisplayedBandsInfo.NumDisplayedScrollingCols == 0 && DisplayedBandsInfo.FirstDisplayedScrollingCol == -1)); 5541if (cx < cxMax && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 5549dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 6635int columnIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingCol; 6656Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol != -1); 6657dataGridViewColumnTmp = Columns.GetPreviousColumn(Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6706&& DisplayedBandsInfo.FirstDisplayedScrollingCol != -1 6707&& columnIndexTmp != DisplayedBandsInfo.FirstDisplayedScrollingCol 6708&& Columns.DisplayInOrder(columnIndexTmp, DisplayedBandsInfo.FirstDisplayedScrollingCol) 6727&& (DisplayedBandsInfo.FirstDisplayedScrollingCol == -1 6728|| (DisplayedBandsInfo.FirstDisplayedScrollingCol != columnIndexTmp 6729&& Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, columnIndexTmp))) 8247if (!columnFound && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8249for (dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8272if (dataGridViewColumn.Index == DisplayedBandsInfo.FirstDisplayedScrollingCol) 8295if (dataGridViewColumn.Index == DisplayedBandsInfo.FirstDisplayedScrollingCol) 8381if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8383dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8493dataGridViewColumn = DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8494? Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol] 8522dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8699Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 8722&& DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8725Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8751if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8764Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8873&& DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8876Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8910if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8918Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 9520if (hti._col != DisplayedBandsInfo.FirstDisplayedScrollingCol || DisplayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0) 14326Debug.Assert(Columns.DisplayInOrder(dataGridViewColumn.Index, DisplayedBandsInfo.FirstDisplayedScrollingCol)); 17147if (dataGridViewColumn.Visible && !dataGridViewColumn.Frozen && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 17150if (DisplayedBandsInfo.FirstDisplayedScrollingCol == dataGridViewColumn.Index) 17156else if (Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, dataGridViewColumn.Index)) 19360isLastVisibleColumn = (DisplayedBandsInfo.FirstDisplayedScrollingCol < 0); 19399if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 && cx < scrollingBounds.Width) 19415dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 25994if (DisplayedBandsInfo.FirstDisplayedScrollingCol != -1 25996&& (columnIndex != DisplayedBandsInfo.FirstDisplayedScrollingCol || FirstDisplayedScrollingColumnHiddenWidth > 0)) 25999if (Columns.DisplayInOrder(columnIndex, DisplayedBandsInfo.FirstDisplayedScrollingCol)) 26009columnsToScroll = Columns.GetColumnCount(DataGridViewElementStates.Visible, columnIndex, DisplayedBandsInfo.FirstDisplayedScrollingCol); 26017else if (columnIndex == DisplayedBandsInfo.FirstDisplayedScrollingCol && FirstDisplayedScrollingColumnHiddenWidth > 0) 26042int firstDisplayedScrollingColumn = DisplayedBandsInfo.FirstDisplayedScrollingCol; 26051if (firstDisplayedScrollingColumn == DisplayedBandsInfo.FirstDisplayedScrollingCol) 26072if (firstDisplayedScrollingColumn == DisplayedBandsInfo.FirstDisplayedScrollingCol) 26124Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26125dataGridViewColumnTmp = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26141Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26142dataGridViewColumnTmp = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26168newFirstVisibleScrollingCol = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26192Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingCol < Columns.Count); 28897int columnIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingCol;