10 writes to FirstDisplayedScrollingRow
System.Windows.Forms (10)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (10)
4766this.displayedBandsInfo.FirstDisplayedFrozenRow = this.displayedBandsInfo.FirstDisplayedScrollingRow = 4889this.displayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRow; 6430this.displayedBandsInfo.FirstDisplayedScrollingRow = rowIndex; 10368this.displayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10423this.displayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 20288this.displayedBandsInfo.FirstDisplayedScrollingRow = -1; 26514this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26544this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26608this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 28319this.displayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRowCache;
118 references to FirstDisplayedScrollingRow
System.Windows.Forms (118)
winforms\Managed\System\WinForms\DataGridView.cs (9)
2962if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2964ptFirstDisplayedCellAddress.Y = this.displayedBandsInfo.FirstDisplayedScrollingRow; 3043this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 3045firstDisplayedRowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 3166return this.displayedBandsInfo.FirstDisplayedScrollingRow; 3201if (value == this.displayedBandsInfo.FirstDisplayedScrollingRow) 3219Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 3221if (value > this.displayedBandsInfo.FirstDisplayedScrollingRow) 3223int rowsToScroll = this.Rows.GetRowCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, value);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1309rowIndex = dataGridView.DisplayedBandsInfo.FirstDisplayedScrollingRow;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (108)
521rowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 1323int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 1327oldFirstVisibleScrollingRow == this.displayedBandsInfo.FirstDisplayedScrollingRow) 1336oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 1339int rowAboveFirstVisibleScrollingRow = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 1346rowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 1354while (oldFirstVisibleScrollingRow != this.displayedBandsInfo.FirstDisplayedScrollingRow); 2065rowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 2238rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 4297if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4302while (rowIndex != this.displayedBandsInfo.FirstDisplayedScrollingRow) 4304Debug.Assert(rowIndex < this.displayedBandsInfo.FirstDisplayedScrollingRow); 4315if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4318return this.Rows.GetRowsHeight(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) + 4747int firstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 4897Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow < nRows, "firstDisplayedScrollingRow larger than number of rows"); 6451int rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 6470Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1); 6471rowIndexTmp = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6531if (this.displayedBandsInfo.FirstDisplayedScrollingRow != -1) 6535lastDisplayedScrollingRowIndex = this.Rows.GetNextRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedScrollingRows - 2 /*skipRows*/); 6539lastDisplayedScrollingRowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 6545rowIndexTmp < this.displayedBandsInfo.FirstDisplayedScrollingRow && 6562(this.displayedBandsInfo.FirstDisplayedScrollingRow == -1 || this.displayedBandsInfo.FirstDisplayedScrollingRow < rowIndexTmp) && 8680Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8713Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8732if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8734if (this.verticalOffset + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 8897Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8913if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8915if (this.verticalOffset + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 9147if (!rowFound && this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9149for (indexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 9228if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9230indexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 9302if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9304if (index >= this.displayedBandsInfo.FirstDisplayedScrollingRow) 9307indexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 9340Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1); 9341indexTmp = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, 9578if (hti.row != this.displayedBandsInfo.FirstDisplayedScrollingRow || this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 9738if (hti.row != this.displayedBandsInfo.FirstDisplayedScrollingRow || this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 10114else if (lo >= this.displayedBandsInfo.FirstDisplayedScrollingRow && 10116this.displayedBandsInfo.FirstDisplayedScrollingRow, 10126top = this.GetRowDisplayRectangle(this.displayedBandsInfo.FirstDisplayedScrollingRow, true /*cutOverflow*/).Top; 10145else if (hi > this.displayedBandsInfo.FirstDisplayedScrollingRow) 10360oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 10386oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 17020Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 17023this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 17029Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 17032if (this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) > 17943int oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 17945if (oldfirstDisplayedScrollingRow != this.displayedBandsInfo.FirstDisplayedScrollingRow) 19722rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 20155(indexTmpNext == -1) && (this.displayedBandsInfo.FirstDisplayedScrollingRow == -1)); 20167if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 20169indexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 23267if (this.displayedBandsInfo.FirstDisplayedScrollingRow > 0) 26094else if (this.displayedBandsInfo.FirstDisplayedScrollingRow != -1 && 26095rowIndex >= this.displayedBandsInfo.FirstDisplayedScrollingRow && 26313Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.Rows.Count); 26376if (rowIndex < this.displayedBandsInfo.FirstDisplayedScrollingRow) 26386rowsToScroll = this.Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26389else if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0 && 26390rowIndex > this.displayedBandsInfo.FirstDisplayedScrollingRow) 26393int firstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26426Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26458Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow > -1); 26482Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26485int newScrolledOffRowCount = this.Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26498Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26499int newFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26512int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26518if (this.displayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26520deltaY = -this.Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26521rows = this.Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26525Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow); 26546Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26560Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26562int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26563int newFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26614if (this.displayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26616scrollHeight = this.Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26617rowCount = this.Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow); 26620else if (this.displayedBandsInfo.FirstDisplayedScrollingRow < oldFirstVisibleScrollingRow) 26622scrollHeight = -this.Rows.GetRowsHeight(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26623rowCount = -this.Rows.GetRowCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 28247int firstDisplayedScrollingRowCache = this.displayedBandsInfo.FirstDisplayedScrollingRow; 28492Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28493if (this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 28512Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28513int firstDisplayedScrollingRowHeight = this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow); 29047int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 29078int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == this.displayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : this.displayedBandsInfo.FirstDisplayedScrollingRow); 29106int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 29135int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == this.displayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : this.displayedBandsInfo.FirstDisplayedScrollingRow); 29172rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow;