10 writes to FirstDisplayedScrollingRow
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (10)
4784DisplayedBandsInfo.FirstDisplayedFrozenRow = DisplayedBandsInfo.FirstDisplayedScrollingRow = 4899DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRow; 6407DisplayedBandsInfo.FirstDisplayedScrollingRow = rowIndex; 10193DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10251DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 19748DisplayedBandsInfo.FirstDisplayedScrollingRow = -1; 26414DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26446DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26511DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 28320DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRowCache;
121 references to FirstDisplayedScrollingRow
System.Windows.Forms (121)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (10)
2346if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2348ptFirstDisplayedCellAddress.Y = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2353Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == -1); 2430&& DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2432firstDisplayedRowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2529get => DisplayedBandsInfo.FirstDisplayedScrollingRow; 2563if (value == DisplayedBandsInfo.FirstDisplayedScrollingRow) 2584Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 2586if (value > DisplayedBandsInfo.FirstDisplayedScrollingRow) 2588int rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (110)
507rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1335int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1339&& oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow) 1348oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1351int rowAboveFirstVisibleScrollingRow = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 1359rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1367while (oldFirstVisibleScrollingRow != DisplayedBandsInfo.FirstDisplayedScrollingRow); 2057rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2219rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4328if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4333while (rowIndex != DisplayedBandsInfo.FirstDisplayedScrollingRow) 4335Debug.Assert(rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow); 4347if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4350return Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) + 4517int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4522Debug.Assert(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow); 4768int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4907Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow < nRows, "firstDisplayedScrollingRow larger than number of rows"); 6428int rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 6448Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 6449rowIndexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6509if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1) 6513DisplayedBandsInfo.FirstDisplayedScrollingRow, 6516: DisplayedBandsInfo.FirstDisplayedScrollingRow; 6521&& rowIndexTmp < DisplayedBandsInfo.FirstDisplayedScrollingRow 6538&& (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1 || DisplayedBandsInfo.FirstDisplayedScrollingRow < rowIndexTmp) 8605Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8641Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8653if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8655if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 8822Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8838if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8840if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 9063if (!rowFound && DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9065for (indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9138if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9140indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9218if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9220if (index >= DisplayedBandsInfo.FirstDisplayedScrollingRow) 9223indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9257Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 9258indexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, 9442if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9581if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9938else if (lo >= DisplayedBandsInfo.FirstDisplayedScrollingRow 9941DisplayedBandsInfo.FirstDisplayedScrollingRow, 9951top = GetRowDisplayRectangle(DisplayedBandsInfo.FirstDisplayedScrollingRow, cutOverflow: true).Top; 9970else if (hi > DisplayedBandsInfo.FirstDisplayedScrollingRow) 10184oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 10211oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 16583Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16586&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16593Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16597if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 17508int oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 17510if (oldfirstDisplayedScrollingRow != DisplayedBandsInfo.FirstDisplayedScrollingRow) 19163rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 19604(indexTmpNext == -1) && (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1)); 19618if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 19620indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 22946if (DisplayedBandsInfo.FirstDisplayedScrollingRow > 0) 25971else if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1 25972&& rowIndex >= DisplayedBandsInfo.FirstDisplayedScrollingRow 26206Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.Count); 26270if (rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow) 26280rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26283else if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && rowIndex > DisplayedBandsInfo.FirstDisplayedScrollingRow) 26286int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26322Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26355Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow > -1); 26380Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26383int newScrolledOffRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26396Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26397int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26412int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26418if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26420deltaY = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26421rows = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26425Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow); 26448Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26462Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26464int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26465int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26517if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26519scrollHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26520rowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26523else if (DisplayedBandsInfo.FirstDisplayedScrollingRow < oldFirstVisibleScrollingRow) 26525scrollHeight = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26526rowCount = -Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 28240int firstDisplayedScrollingRowCache = DisplayedBandsInfo.FirstDisplayedScrollingRow; 28431Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28432if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28455Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28456int firstDisplayedScrollingRowHeight = Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow); 28987int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29024int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29057int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29092int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29130rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
1001rowIndex = dataGridView.DisplayedBandsInfo.FirstDisplayedScrollingRow;