1 write to displayedBandsInfo
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridView.cs (1)
460this.displayedBandsInfo = new DisplayedBandsData();
331 references to displayedBandsInfo
System.Windows.Forms (331)
winforms\Managed\System\WinForms\DataGridView.cs (29)
2141this.displayedBandsInfo.EnsureDirtyState(); 2681return this.displayedBandsInfo; 2961Debug.Assert(this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == 0); 2962if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2964ptFirstDisplayedCellAddress.Y = this.displayedBandsInfo.FirstDisplayedScrollingRow; 3000else if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 3002firstDisplayedColumnIndex = this.displayedBandsInfo.FirstDisplayedScrollingCol; 3043this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 3045firstDisplayedRowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 3090return this.displayedBandsInfo.FirstDisplayedScrollingCol; 3125if (value == this.displayedBandsInfo.FirstDisplayedScrollingCol) 3145Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 3146Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol == value || 3147this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, value)); 3149while (this.displayedBandsInfo.FirstDisplayedScrollingCol != value && 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); 3399int oldFirstVisibleScrollingCol = this.displayedBandsInfo.FirstDisplayedScrollingCol; 3440this.displayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn(); 3446this.displayedBandsInfo.FirstDisplayedScrollingCol > -1) 3454if (oldFirstVisibleScrollingCol == this.displayedBandsInfo.FirstDisplayedScrollingCol) 3458else if (this.Columns.DisplayInOrder(oldFirstVisibleScrollingCol, this.displayedBandsInfo.FirstDisplayedScrollingCol)) 3460scrollEventType = this.Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, this.displayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 3464Debug.Assert(this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol)); 3465scrollEventType = this.Columns.GetColumnCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement; 4280this.displayedBandsInfo.EnsureDirtyState();
winforms\Managed\System\WinForms\DataGridViewMethods.cs (302)
521rowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 944if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 945this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 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; 3663return this.displayedBandsInfo.NumDisplayedFrozenCols > 0; 3666return this.Columns.GetColumnCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, firstVisibleFrozenColumn.Index, dataGridViewColumn.Index) < this.displayedBandsInfo.NumDisplayedFrozenCols; 3670int firstDisplayedScrollingColumnIndex = this.displayedBandsInfo.FirstDisplayedScrollingCol; 3675return this.displayedBandsInfo.NumDisplayedScrollingCols > 0; 3679return this.Columns.GetColumnCount(DataGridViewElementStates.Visible, firstDisplayedScrollingColumnIndex, dataGridViewColumn.Index) < this.displayedBandsInfo.NumDisplayedScrollingCols; 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) + 4560int firstDisplayedScrollingCol = this.displayedBandsInfo.FirstDisplayedScrollingCol; 4566this.displayedBandsInfo.FirstDisplayedFrozenCol = -1; 4567this.displayedBandsInfo.NumDisplayedFrozenCols = 0; 4568this.displayedBandsInfo.FirstDisplayedScrollingCol = -1; 4569this.displayedBandsInfo.NumDisplayedScrollingCols = 0; 4570this.displayedBandsInfo.LastDisplayedFrozenCol = -1; 4571this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4611this.displayedBandsInfo.FirstDisplayedFrozenCol = firstDisplayedFrozenCol; 4612this.displayedBandsInfo.LastDisplayedFrozenCol = lastDisplayedFrozenCol; 4613this.displayedBandsInfo.NumDisplayedFrozenCols = numDisplayedFrozenCols; 4614this.displayedBandsInfo.FirstDisplayedScrollingCol = this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4615this.displayedBandsInfo.NumDisplayedScrollingCols = 0; 4715this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; // no totally visible scrolling column at all 4728this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = dataGridViewColumn.Index; 4733this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4735this.displayedBandsInfo.FirstDisplayedFrozenCol = firstDisplayedFrozenCol; 4736this.displayedBandsInfo.LastDisplayedFrozenCol = lastDisplayedFrozenCol; 4737this.displayedBandsInfo.NumDisplayedFrozenCols = numDisplayedFrozenCols; 4738this.displayedBandsInfo.FirstDisplayedScrollingCol = firstDisplayedScrollingCol; 4739this.displayedBandsInfo.NumDisplayedScrollingCols = numVisibleScrollingCols; 4740Debug.Assert((this.displayedBandsInfo.NumDisplayedScrollingCols > 0 && this.displayedBandsInfo.FirstDisplayedScrollingCol != -1) || 4741(this.displayedBandsInfo.NumDisplayedScrollingCols == 0 && this.displayedBandsInfo.FirstDisplayedScrollingCol == -1)); 4747int firstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 4764this.displayedBandsInfo.NumDisplayedFrozenRows = this.displayedBandsInfo.NumTotallyDisplayedFrozenRows = 4765this.displayedBandsInfo.NumDisplayedScrollingRows = this.displayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 4766this.displayedBandsInfo.FirstDisplayedFrozenRow = this.displayedBandsInfo.FirstDisplayedScrollingRow = 4767this.displayedBandsInfo.LastDisplayedFrozenRow = this.displayedBandsInfo.LastDisplayedScrollingRow = -1; 4801this.displayedBandsInfo.NumDisplayedFrozenRows = numTotallyDisplayedFrozenRows + 1; 4805this.displayedBandsInfo.NumDisplayedFrozenRows = numTotallyDisplayedFrozenRows; 4863this.displayedBandsInfo.NumDisplayedScrollingRows = visibleScrollingRows; 4866this.displayedBandsInfo.NumTotallyDisplayedScrollingRows = visibleScrollingRows - 1; 4870this.displayedBandsInfo.NumTotallyDisplayedScrollingRows = visibleScrollingRows; 4880this.displayedBandsInfo.NumDisplayedScrollingRows = this.displayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 4888this.displayedBandsInfo.FirstDisplayedFrozenRow = firstDisplayedFrozenRow; 4889this.displayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRow; 4890this.displayedBandsInfo.NumTotallyDisplayedFrozenRows = numTotallyDisplayedFrozenRows; 4891this.displayedBandsInfo.LastDisplayedFrozenRow = lastDisplayedFrozenRow; 4892this.displayedBandsInfo.LastDisplayedScrollingRow = lastDisplayedScrollingRow; 4894Debug.Assert(this.displayedBandsInfo.NumTotallyDisplayedFrozenRows >= 0, "the number of visible frozen rows can't be negative"); 4895Debug.Assert(this.displayedBandsInfo.NumDisplayedScrollingRows >= 0, "the number of visible scrolling rows can't be negative"); 4896Debug.Assert(this.displayedBandsInfo.NumTotallyDisplayedScrollingRows >= 0, "the number of totally visible scrolling rows can't be negative"); 4897Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow < nRows, "firstDisplayedScrollingRow larger than number of rows"); 5547if (cx < cxMax && this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 5554dataGridViewColumn = (DataGridViewColumn)this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 5577return includePartialRow ? (this.displayedBandsInfo.NumDisplayedFrozenRows + this.displayedBandsInfo.NumDisplayedScrollingRows) : 5578(this.displayedBandsInfo.NumTotallyDisplayedFrozenRows + this.displayedBandsInfo.NumTotallyDisplayedScrollingRows); 6430this.displayedBandsInfo.FirstDisplayedScrollingRow = rowIndex; 6436if (this.displayedBandsInfo.Dirty && this.Visible) 6451int rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 6454int numDisplayedScrollingRows = this.displayedBandsInfo.NumDisplayedScrollingRows; 6470Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1); 6471rowIndexTmp = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6493int numDisplayedFrozenRows = this.displayedBandsInfo.NumDisplayedFrozenRows; 6517if (this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 6521if (this.displayedBandsInfo.NumDisplayedFrozenRows > 1) 6523lastDisplayedFrozenRowIndex = this.Rows.GetNextRow(firstDisplayedFrozenRowIndex, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedFrozenRows-2 /*skipRows*/); 6531if (this.displayedBandsInfo.FirstDisplayedScrollingRow != -1) 6533if (this.displayedBandsInfo.NumDisplayedScrollingRows > 1) 6535lastDisplayedScrollingRowIndex = this.Rows.GetNextRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedScrollingRows - 2 /*skipRows*/); 6539lastDisplayedScrollingRowIndex = this.displayedBandsInfo.FirstDisplayedScrollingRow; 6543rowIndexTmp = this.displayedBandsInfo.OldFirstDisplayedScrollingRow; 6545rowIndexTmp < this.displayedBandsInfo.FirstDisplayedScrollingRow && 6559rowIndexTmp = this.displayedBandsInfo.OldFirstDisplayedScrollingRow; 6562(this.displayedBandsInfo.FirstDisplayedScrollingRow == -1 || this.displayedBandsInfo.FirstDisplayedScrollingRow < rowIndexTmp) && 6579if (this.displayedBandsInfo.RowInsertionOccurred) 6582rowIndexTmp = this.displayedBandsInfo.OldFirstDisplayedScrollingRow; 6585rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, this.displayedBandsInfo.OldNumDisplayedScrollingRows - 1); 6608rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, this.displayedBandsInfo.OldNumDisplayedFrozenRows - 1); 6652int columnIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingCol; 6655int numDisplayedScrollingCols = this.displayedBandsInfo.NumDisplayedScrollingCols; 6672Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol != -1); 6673dataGridViewColumnTmp = this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6695int numDisplayedFrozenCols = this.displayedBandsInfo.NumDisplayedFrozenCols; 6717columnIndexTmp = this.displayedBandsInfo.OldFirstDisplayedScrollingCol; 6720this.displayedBandsInfo.FirstDisplayedScrollingCol != -1 && 6721columnIndexTmp != this.displayedBandsInfo.FirstDisplayedScrollingCol && 6722this.Columns.DisplayInOrder(columnIndexTmp, this.displayedBandsInfo.FirstDisplayedScrollingCol) && 6738columnIndexTmp = this.displayedBandsInfo.OldFirstDisplayedScrollingCol; 6741(this.displayedBandsInfo.FirstDisplayedScrollingCol == -1 || (this.displayedBandsInfo.FirstDisplayedScrollingCol != columnIndexTmp && this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, columnIndexTmp))) && 6759if (this.displayedBandsInfo.ColumnInsertionOccurred) 6785this.displayedBandsInfo.Dirty = false; 8303if (!columnFound && this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8305for (dataGridViewColumn = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 8328if (dataGridViewColumn.Index == this.displayedBandsInfo.FirstDisplayedScrollingCol) 8350if (dataGridViewColumn.Index == this.displayedBandsInfo.FirstDisplayedScrollingCol) 8457if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8459dataGridViewColumn = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 8569if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8571dataGridViewColumn = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 8600dataGridViewColumn = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 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) <= 8777Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 8807this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0 && 8809this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen) != null)) 8832if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8834if (this.displayedBandsInfo.LastTotallyDisplayedScrollingCol != -1 && 8835this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.LastTotallyDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.None) == null) 8841DataGridViewColumn newFirstVisibleScrollingCol = this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol], 8897Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8913if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8915if (this.verticalOffset + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 8953this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0 && 8955this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen) != null) 8989if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0 && 8990(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol == -1 || 8991this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.LastTotallyDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.None) != null)) 8993DataGridViewColumn newFirstVisibleScrollingCol = this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol], 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) 9660if (hti.col != this.displayedBandsInfo.FirstDisplayedScrollingCol || this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0) 9738if (hti.row != this.displayedBandsInfo.FirstDisplayedScrollingRow || this.displayedBandsInfo.NumDisplayedFrozenRows > 0) 10109else if (this.displayedBandsInfo.NumDisplayedScrollingRows == 0) 10114else if (lo >= this.displayedBandsInfo.FirstDisplayedScrollingRow && 10116this.displayedBandsInfo.FirstDisplayedScrollingRow, 10117lo) >= this.displayedBandsInfo.NumDisplayedScrollingRows) 10126top = this.GetRowDisplayRectangle(this.displayedBandsInfo.FirstDisplayedScrollingRow, true /*cutOverflow*/).Top; 10145else if (hi > this.displayedBandsInfo.FirstDisplayedScrollingRow) 10164for (int i = 0; i < this.displayedBandsInfo.NumDisplayedFrozenRows;) 10171if (i == this.displayedBandsInfo.NumDisplayedFrozenRows - 1) 10360oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 10362if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 10363this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 10368this.displayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10386oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 10390this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 10391this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 10414this.displayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn(); 10423this.displayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10442if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) && 10443this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount && 13664int numDisplayedRows = this.displayedBandsInfo.NumDisplayedFrozenRows + this.displayedBandsInfo.NumDisplayedScrollingRows; 14806Debug.Assert(this.Columns.DisplayInOrder(dataGridViewColumn.Index, this.displayedBandsInfo.FirstDisplayedScrollingCol)); 15758this.displayedBandsInfo.CorrectColumnIndexAfterInsertion(dataGridViewColumn.Index, 1); 15790this.displayedBandsInfo.CorrectRowIndexAfterInsertion(rowIndex, insertionCount); 15828this.displayedBandsInfo.CorrectRowIndexAfterInsertion(rowIndex, dataGridViewRows.Length); 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) > 17340this.displayedBandsInfo.CorrectRowIndexAfterDeletion(dataGridViewColumn.Index); 17390this.displayedBandsInfo.CorrectRowIndexAfterDeletion(rowIndexDeleted); 17612this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0) 17615if (this.displayedBandsInfo.FirstDisplayedScrollingCol == dataGridViewColumn.Index) 17621else if (this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, dataGridViewColumn.Index)) 17943int oldfirstDisplayedScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 17945if (oldfirstDisplayedScrollingRow != this.displayedBandsInfo.FirstDisplayedScrollingRow) 19691int numDisplayedFrozenRows = this.displayedBandsInfo.NumDisplayedFrozenRows; 19722rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 19726int numDisplayedScrollingRows = this.displayedBandsInfo.NumDisplayedScrollingRows; 19929isLastVisibleColumn = (this.displayedBandsInfo.FirstDisplayedScrollingCol < 0); 19963if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0 && cx < scrollingBounds.Width) 19978dataGridViewColumn = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 20155(indexTmpNext == -1) && (this.displayedBandsInfo.FirstDisplayedScrollingRow == -1)); 20167if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 20169indexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 20286this.displayedBandsInfo.FirstDisplayedFrozenCol = -1; 20287this.displayedBandsInfo.FirstDisplayedFrozenRow = -1; 20288this.displayedBandsInfo.FirstDisplayedScrollingRow = -1; 20289this.displayedBandsInfo.FirstDisplayedScrollingCol = -1; 20290this.displayedBandsInfo.NumDisplayedFrozenRows = 0; 20291this.displayedBandsInfo.NumDisplayedFrozenCols = 0; 20292this.displayedBandsInfo.NumDisplayedScrollingRows = 0; 20293this.displayedBandsInfo.NumDisplayedScrollingCols = 0; 20294this.displayedBandsInfo.NumTotallyDisplayedFrozenRows = 0; 20295this.displayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 20296this.displayedBandsInfo.LastDisplayedScrollingRow = -1; 20297this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 23267if (this.displayedBandsInfo.FirstDisplayedScrollingRow > 0) 23282jumpRows = this.displayedBandsInfo.NumTotallyDisplayedFrozenRows; 23285jumpRows += this.displayedBandsInfo.NumTotallyDisplayedScrollingRows; 23508jumpRows = this.displayedBandsInfo.NumTotallyDisplayedFrozenRows; 23512jumpRows = this.displayedBandsInfo.NumTotallyDisplayedScrollingRows; 26094else if (this.displayedBandsInfo.FirstDisplayedScrollingRow != -1 && 26095rowIndex >= this.displayedBandsInfo.FirstDisplayedScrollingRow && 26126if (this.displayedBandsInfo.FirstDisplayedScrollingCol != -1 && 26128(columnIndex != this.displayedBandsInfo.FirstDisplayedScrollingCol || this.negOffset > 0)) 26131if (this.Columns.DisplayInOrder(columnIndex, this.displayedBandsInfo.FirstDisplayedScrollingCol)) 26141columnsToScroll = this.Columns.GetColumnCount(DataGridViewElementStates.Visible, columnIndex, this.displayedBandsInfo.FirstDisplayedScrollingCol); 26148else if (columnIndex == this.displayedBandsInfo.FirstDisplayedScrollingCol && this.negOffset > 0) 26159else if (this.displayedBandsInfo.LastTotallyDisplayedScrollingCol == -1 || 26160(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol != columnIndex && 26161this.Columns.DisplayInOrder(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol, columnIndex))) 26172int firstDisplayedScrollingColumn = this.displayedBandsInfo.FirstDisplayedScrollingCol; 26181if (firstDisplayedScrollingColumn == this.displayedBandsInfo.FirstDisplayedScrollingCol) 26200if (firstDisplayedScrollingColumn == this.displayedBandsInfo.FirstDisplayedScrollingCol) 26231if (this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0) 26233dataGridViewColumnTmp = this.Columns[this.displayedBandsInfo.LastTotallyDisplayedScrollingCol]; 26248Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26249dataGridViewColumnTmp = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 26264Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26265dataGridViewColumnTmp = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 26288newFirstVisibleScrollingCol = this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol]; 26310Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingCol < this.Columns.Count); 26311Debug.Assert(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && this.displayedBandsInfo.LastTotallyDisplayedScrollingCol < this.Columns.Count); 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; 26514this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 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); 26544this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26546Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26560Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26562int oldFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26563int newFirstVisibleScrollingRow = this.displayedBandsInfo.FirstDisplayedScrollingRow; 26608this.displayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 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; 28319this.displayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRowCache; 28331this.displayedBandsInfo.EnsureDirtyState(); 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); 28941int numDisplayedFrozenCols = this.displayedBandsInfo.NumDisplayedFrozenCols; 28959int columnIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingCol; 28962int numDisplayedScrollingCols = this.displayedBandsInfo.NumDisplayedScrollingCols; 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); 29155int rowIndexTmp, numDisplayedFrozenRows = this.displayedBandsInfo.NumDisplayedFrozenRows; 29172rowIndexTmp = this.displayedBandsInfo.FirstDisplayedScrollingRow; 29175int numDisplayedScrollingRows = this.displayedBandsInfo.NumDisplayedScrollingRows;