10 writes to FirstDisplayedScrollingRow
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (10)
4840DisplayedBandsInfo.FirstDisplayedFrozenRow = DisplayedBandsInfo.FirstDisplayedScrollingRow = 4955DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRow; 6463DisplayedBandsInfo.FirstDisplayedScrollingRow = rowIndex; 10249DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10307DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 19810DisplayedBandsInfo.FirstDisplayedScrollingRow = -1; 26484DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26516DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26581DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 28390DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRowCache;
118 references to FirstDisplayedScrollingRow
System.Windows.Forms (118)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
2350if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2352ptFirstDisplayedCellAddress.Y = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2434&& DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2436firstDisplayedRowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2533get => DisplayedBandsInfo.FirstDisplayedScrollingRow; 2567if (value == DisplayedBandsInfo.FirstDisplayedScrollingRow) 2588Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 2590if (value > DisplayedBandsInfo.FirstDisplayedScrollingRow) 2592int rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (108)
552rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1380int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1384&& oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow) 1393oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1396int rowAboveFirstVisibleScrollingRow = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 1404rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 1412while (oldFirstVisibleScrollingRow != DisplayedBandsInfo.FirstDisplayedScrollingRow); 2102rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2264rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4384if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4389while (rowIndex != DisplayedBandsInfo.FirstDisplayedScrollingRow) 4391Debug.Assert(rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow); 4403if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4406return Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) + 4824int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4963Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow < nRows, "firstDisplayedScrollingRow larger than number of rows"); 6484int rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 6504Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 6505rowIndexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6565if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1) 6569DisplayedBandsInfo.FirstDisplayedScrollingRow, 6572: DisplayedBandsInfo.FirstDisplayedScrollingRow; 6577&& rowIndexTmp < DisplayedBandsInfo.FirstDisplayedScrollingRow 6594&& (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1 || DisplayedBandsInfo.FirstDisplayedScrollingRow < rowIndexTmp) 8661Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8697Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8709if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8711if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 8878Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8894if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8896if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 9119if (!rowFound && DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9121for (indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9194if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9196indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9274if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9276if (index >= DisplayedBandsInfo.FirstDisplayedScrollingRow) 9279indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9313Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 9314indexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, 9498if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9637if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9994else if (lo >= DisplayedBandsInfo.FirstDisplayedScrollingRow 9997DisplayedBandsInfo.FirstDisplayedScrollingRow, 10007top = GetRowDisplayRectangle(DisplayedBandsInfo.FirstDisplayedScrollingRow, cutOverflow: true).Top; 10026else if (hi > DisplayedBandsInfo.FirstDisplayedScrollingRow) 10240oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 10267oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 16645Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16648&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16655Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16659if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 17570int oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 17572if (oldfirstDisplayedScrollingRow != DisplayedBandsInfo.FirstDisplayedScrollingRow) 19225rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 19666(indexTmpNext == -1) && (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1)); 19680if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 19682indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 23016if (DisplayedBandsInfo.FirstDisplayedScrollingRow > 0) 26041else if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1 26042&& rowIndex >= DisplayedBandsInfo.FirstDisplayedScrollingRow 26276Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.Count); 26340if (rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow) 26350rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26353else if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && rowIndex > DisplayedBandsInfo.FirstDisplayedScrollingRow) 26356int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26392Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26425Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow > -1); 26450Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26453int newScrolledOffRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26466Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26467int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26482int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26488if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26490deltaY = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26491rows = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26495Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow); 26518Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26532Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26534int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26535int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26587if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26589scrollHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26590rowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26593else if (DisplayedBandsInfo.FirstDisplayedScrollingRow < oldFirstVisibleScrollingRow) 26595scrollHeight = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26596rowCount = -Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 28310int firstDisplayedScrollingRowCache = DisplayedBandsInfo.FirstDisplayedScrollingRow; 28501Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28502if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28525Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28526int firstDisplayedScrollingRowHeight = Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow); 29057int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29094int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29127int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29162int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29200rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
1001rowIndex = dataGridView.DisplayedBandsInfo.FirstDisplayedScrollingRow;