1 write to DisplayedBandsInfo
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
414DisplayedBandsInfo = new DisplayedBandsData();
350 references to DisplayedBandsInfo
System.Windows.Forms (350)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (36)
1671DisplayedBandsInfo.EnsureDirtyState(); 2344Debug.Assert(DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == 0); 2345if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2347ptFirstDisplayedCellAddress.Y = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2352Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == -1); 2353Debug.Assert(DisplayedBandsInfo.NumDisplayedScrollingRows == 0); 2354Debug.Assert(DisplayedBandsInfo.NumTotallyDisplayedScrollingRows == 0); 2385else if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 2387firstDisplayedColumnIndex = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2400else if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 2402firstDisplayedColumnIndexDbg2 = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2406Debug.Assert(DisplayedBandsInfo.LastTotallyDisplayedScrollingCol == -1); 2409Debug.Assert(firstDisplayedColumnIndex == firstDisplayedColumnIndexDbg1 || !Visible || DisplayedBandsInfo.Dirty); 2410Debug.Assert(firstDisplayedColumnIndex == firstDisplayedColumnIndexDbg2 || DisplayedBandsInfo.Dirty); 2429&& DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 2431firstDisplayedRowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 2448get => DisplayedBandsInfo.FirstDisplayedScrollingCol; 2482if (value == DisplayedBandsInfo.FirstDisplayedScrollingCol) 2510Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 2511Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol == value 2512|| Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, value)); 2516while (DisplayedBandsInfo.FirstDisplayedScrollingCol != value 2528get => DisplayedBandsInfo.FirstDisplayedScrollingRow; 2562if (value == DisplayedBandsInfo.FirstDisplayedScrollingRow) 2583Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 2585if (value > DisplayedBandsInfo.FirstDisplayedScrollingRow) 2587int rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value); 2694int oldFirstVisibleScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 2738DisplayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn(); 2745&& DisplayedBandsInfo.FirstDisplayedScrollingCol > -1) 2753if (oldFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol) 2757else if (Columns.DisplayInOrder(oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol)) 2759scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement; 2763Debug.Assert(Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol)); 2764scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement; 3360DisplayedBandsInfo.EnsureDirtyState();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (313)
507rowIndex = DisplayedBandsInfo.FirstDisplayedScrollingRow; 936if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 937&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 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; 3610return DisplayedBandsInfo.NumDisplayedFrozenCols > 0; 3614return Columns.GetColumnCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, firstVisibleFrozenColumn.Index, dataGridViewColumn.Index) < DisplayedBandsInfo.NumDisplayedFrozenCols; 3618int firstDisplayedScrollingColumnIndex = DisplayedBandsInfo.FirstDisplayedScrollingCol; 3623return DisplayedBandsInfo.NumDisplayedScrollingCols > 0; 3628return Columns.GetColumnCount(DataGridViewElementStates.Visible, firstDisplayedScrollingColumnIndex, dataGridViewColumn.Index) < DisplayedBandsInfo.NumDisplayedScrollingCols; 4325if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4330while (rowIndex != DisplayedBandsInfo.FirstDisplayedScrollingRow) 4332Debug.Assert(rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow); 4344if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 4347return Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) + 4511int oldNumTotallyVisibleFrozenRows = DisplayedBandsInfo.NumTotallyDisplayedFrozenRows; 4512int oldNumVisibleScrollingRows = DisplayedBandsInfo.NumDisplayedScrollingRows; 4513int oldNumTotallyVisibleScrollingRows = DisplayedBandsInfo.NumTotallyDisplayedScrollingRows; 4514int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4516Debug.Assert(oldNumTotallyVisibleFrozenRows == DisplayedBandsInfo.NumTotallyDisplayedFrozenRows); 4517Debug.Assert(oldNumVisibleScrollingRows == DisplayedBandsInfo.NumDisplayedScrollingRows); 4518Debug.Assert(oldNumTotallyVisibleScrollingRows == DisplayedBandsInfo.NumTotallyDisplayedScrollingRows); 4519Debug.Assert(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow); 4525Debug.Assert(newFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol); 4527int oldLastTotallyVisibleScrollingCol = DisplayedBandsInfo.LastTotallyDisplayedScrollingCol; 4528int oldFirstVisibleScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 4530Debug.Assert(oldLastTotallyVisibleScrollingCol == DisplayedBandsInfo.LastTotallyDisplayedScrollingCol); 4531Debug.Assert(oldFirstVisibleScrollingCol == DisplayedBandsInfo.FirstDisplayedScrollingCol); 4567int firstDisplayedScrollingCol = DisplayedBandsInfo.FirstDisplayedScrollingCol; 4573DisplayedBandsInfo.FirstDisplayedFrozenCol = -1; 4574DisplayedBandsInfo.NumDisplayedFrozenCols = 0; 4575DisplayedBandsInfo.FirstDisplayedScrollingCol = -1; 4576DisplayedBandsInfo.NumDisplayedScrollingCols = 0; 4577DisplayedBandsInfo.LastDisplayedFrozenCol = -1; 4578DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4622DisplayedBandsInfo.FirstDisplayedFrozenCol = firstDisplayedFrozenCol; 4623DisplayedBandsInfo.LastDisplayedFrozenCol = lastDisplayedFrozenCol; 4624DisplayedBandsInfo.NumDisplayedFrozenCols = numDisplayedFrozenCols; 4625DisplayedBandsInfo.FirstDisplayedScrollingCol = DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4626DisplayedBandsInfo.NumDisplayedScrollingCols = 0; 4731DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; // no totally visible scrolling column at all 4745DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = dataGridViewColumn.Index; 4750DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 4753DisplayedBandsInfo.FirstDisplayedFrozenCol = firstDisplayedFrozenCol; 4754DisplayedBandsInfo.LastDisplayedFrozenCol = lastDisplayedFrozenCol; 4755DisplayedBandsInfo.NumDisplayedFrozenCols = numDisplayedFrozenCols; 4756DisplayedBandsInfo.FirstDisplayedScrollingCol = firstDisplayedScrollingCol; 4757DisplayedBandsInfo.NumDisplayedScrollingCols = numVisibleScrollingCols; 4758Debug.Assert((DisplayedBandsInfo.NumDisplayedScrollingCols > 0 && DisplayedBandsInfo.FirstDisplayedScrollingCol != -1) 4759|| (DisplayedBandsInfo.NumDisplayedScrollingCols == 0 && DisplayedBandsInfo.FirstDisplayedScrollingCol == -1)); 4765int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 4779DisplayedBandsInfo.NumDisplayedFrozenRows = DisplayedBandsInfo.NumTotallyDisplayedFrozenRows = 4780DisplayedBandsInfo.NumDisplayedScrollingRows = DisplayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 4781DisplayedBandsInfo.FirstDisplayedFrozenRow = DisplayedBandsInfo.FirstDisplayedScrollingRow = 4782DisplayedBandsInfo.LastDisplayedFrozenRow = DisplayedBandsInfo.LastDisplayedScrollingRow = -1; 4816DisplayedBandsInfo.NumDisplayedFrozenRows = cy > displayHeight 4874DisplayedBandsInfo.NumDisplayedScrollingRows = visibleScrollingRows; 4875DisplayedBandsInfo.NumTotallyDisplayedScrollingRows = cy > displayHeight 4887DisplayedBandsInfo.NumDisplayedScrollingRows = DisplayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 4895DisplayedBandsInfo.FirstDisplayedFrozenRow = firstDisplayedFrozenRow; 4896DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRow; 4897DisplayedBandsInfo.NumTotallyDisplayedFrozenRows = numTotallyDisplayedFrozenRows; 4898DisplayedBandsInfo.LastDisplayedFrozenRow = lastDisplayedFrozenRow; 4899DisplayedBandsInfo.LastDisplayedScrollingRow = lastDisplayedScrollingRow; 4901Debug.Assert(DisplayedBandsInfo.NumTotallyDisplayedFrozenRows >= 0, "the number of visible frozen rows can't be negative"); 4902Debug.Assert(DisplayedBandsInfo.NumDisplayedScrollingRows >= 0, "the number of visible scrolling rows can't be negative"); 4903Debug.Assert(DisplayedBandsInfo.NumTotallyDisplayedScrollingRows >= 0, "the number of totally visible scrolling rows can't be negative"); 4904Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow < nRows, "firstDisplayedScrollingRow larger than number of rows"); 5535if (cx < cxMax && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 5543dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 5566? (DisplayedBandsInfo.NumDisplayedFrozenRows + DisplayedBandsInfo.NumDisplayedScrollingRows) 5567: (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows + DisplayedBandsInfo.NumTotallyDisplayedScrollingRows); 6404DisplayedBandsInfo.FirstDisplayedScrollingRow = rowIndex; 6410if (DisplayedBandsInfo.Dirty && Visible) 6425int rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 6428int numDisplayedScrollingRows = DisplayedBandsInfo.NumDisplayedScrollingRows; 6445Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 6446rowIndexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6469int numDisplayedFrozenRows = DisplayedBandsInfo.NumDisplayedFrozenRows; 6494if (DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 6498lastDisplayedFrozenRowIndex = DisplayedBandsInfo.NumDisplayedFrozenRows > 1 6502skipRows: DisplayedBandsInfo.NumDisplayedFrozenRows - 2) 6506if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1) 6508lastDisplayedScrollingRowIndex = DisplayedBandsInfo.NumDisplayedScrollingRows > 1 6510DisplayedBandsInfo.FirstDisplayedScrollingRow, 6512skipRows: DisplayedBandsInfo.NumDisplayedScrollingRows - 2) 6513: DisplayedBandsInfo.FirstDisplayedScrollingRow; 6516rowIndexTmp = DisplayedBandsInfo.OldFirstDisplayedScrollingRow; 6518&& rowIndexTmp < DisplayedBandsInfo.FirstDisplayedScrollingRow 6532rowIndexTmp = DisplayedBandsInfo.OldFirstDisplayedScrollingRow; 6535&& (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1 || DisplayedBandsInfo.FirstDisplayedScrollingRow < rowIndexTmp) 6552if (DisplayedBandsInfo.RowInsertionOccurred) 6555rowIndexTmp = DisplayedBandsInfo.OldFirstDisplayedScrollingRow; 6558rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, DisplayedBandsInfo.OldNumDisplayedScrollingRows - 1); 6583rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, DisplayedBandsInfo.OldNumDisplayedFrozenRows - 1); 6629int columnIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingCol; 6632int numDisplayedScrollingCols = DisplayedBandsInfo.NumDisplayedScrollingCols; 6650Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol != -1); 6651dataGridViewColumnTmp = Columns.GetPreviousColumn(Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6674int numDisplayedFrozenCols = DisplayedBandsInfo.NumDisplayedFrozenCols; 6697columnIndexTmp = DisplayedBandsInfo.OldFirstDisplayedScrollingCol; 6700&& DisplayedBandsInfo.FirstDisplayedScrollingCol != -1 6701&& columnIndexTmp != DisplayedBandsInfo.FirstDisplayedScrollingCol 6702&& Columns.DisplayInOrder(columnIndexTmp, DisplayedBandsInfo.FirstDisplayedScrollingCol) 6718columnIndexTmp = DisplayedBandsInfo.OldFirstDisplayedScrollingCol; 6721&& (DisplayedBandsInfo.FirstDisplayedScrollingCol == -1 6722|| (DisplayedBandsInfo.FirstDisplayedScrollingCol != columnIndexTmp 6723&& Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, columnIndexTmp))) 6741if (DisplayedBandsInfo.ColumnInsertionOccurred) 6768DisplayedBandsInfo.Dirty = false; 8242if (!columnFound && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8244for (dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8267if (dataGridViewColumn.Index == DisplayedBandsInfo.FirstDisplayedScrollingCol) 8290if (dataGridViewColumn.Index == DisplayedBandsInfo.FirstDisplayedScrollingCol) 8376if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8378dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8488dataGridViewColumn = DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8489? Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol] 8517dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 8602Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8638Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8650if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8652if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 8694Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 8717&& DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8720Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8746if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 8748if (DisplayedBandsInfo.LastTotallyDisplayedScrollingCol != -1 8750Columns[DisplayedBandsInfo.LastTotallyDisplayedScrollingCol], 8759Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8819Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8835if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 8837if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 8868&& DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8871Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 8905if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 8906&& (DisplayedBandsInfo.LastTotallyDisplayedScrollingCol == -1 8908Columns[DisplayedBandsInfo.LastTotallyDisplayedScrollingCol], 8913Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol], 9060if (!rowFound && DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9062for (indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9135if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9137indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9215if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0) 9217if (index >= DisplayedBandsInfo.FirstDisplayedScrollingRow) 9220indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 9254Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow != -1); 9255indexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, 9439if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9515if (hti._col != DisplayedBandsInfo.FirstDisplayedScrollingCol || DisplayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0) 9578if (hti._row != DisplayedBandsInfo.FirstDisplayedScrollingRow || DisplayedBandsInfo.NumDisplayedFrozenRows > 0) 9930else if (DisplayedBandsInfo.NumDisplayedScrollingRows == 0) 9935else if (lo >= DisplayedBandsInfo.FirstDisplayedScrollingRow 9938DisplayedBandsInfo.FirstDisplayedScrollingRow, 9939lo) >= DisplayedBandsInfo.NumDisplayedScrollingRows) 9948top = GetRowDisplayRectangle(DisplayedBandsInfo.FirstDisplayedScrollingRow, cutOverflow: true).Top; 9967else if (hi > DisplayedBandsInfo.FirstDisplayedScrollingRow) 9986for (int i = 0; i < DisplayedBandsInfo.NumDisplayedFrozenRows;) 9993if (i == DisplayedBandsInfo.NumDisplayedFrozenRows - 1) 10181oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 10183if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10184&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10190DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10208oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 10212&& DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10213&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10238DisplayedBandsInfo.FirstDisplayedScrollingCol = ComputeFirstVisibleScrollingColumn(); 10248DisplayedBandsInfo.FirstDisplayedScrollingRow = oldfirstDisplayedScrollingRow; 10269if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10270&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount 13209int numDisplayedRows = DisplayedBandsInfo.NumDisplayedFrozenRows + DisplayedBandsInfo.NumDisplayedScrollingRows; 14334Debug.Assert(Columns.DisplayInOrder(dataGridViewColumn.Index, DisplayedBandsInfo.FirstDisplayedScrollingCol)); 15257DisplayedBandsInfo.CorrectColumnIndexAfterInsertion(dataGridViewColumn.Index, 1); 15290DisplayedBandsInfo.CorrectRowIndexAfterInsertion(rowIndex, insertionCount); 15329DisplayedBandsInfo.CorrectRowIndexAfterInsertion(rowIndex, dataGridViewRows.Length); 16580Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16583&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16590Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 16594if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16885DisplayedBandsInfo.CorrectRowIndexAfterDeletion(dataGridViewColumn.Index); 16936DisplayedBandsInfo.CorrectRowIndexAfterDeletion(rowIndexDeleted); 17157if (dataGridViewColumn.Visible && !dataGridViewColumn.Frozen && DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0) 17160if (DisplayedBandsInfo.FirstDisplayedScrollingCol == dataGridViewColumn.Index) 17166else if (Columns.DisplayInOrder(DisplayedBandsInfo.FirstDisplayedScrollingCol, dataGridViewColumn.Index)) 17505int oldfirstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 17507if (oldfirstDisplayedScrollingRow != DisplayedBandsInfo.FirstDisplayedScrollingRow) 19129int numDisplayedFrozenRows = DisplayedBandsInfo.NumDisplayedFrozenRows; 19160rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 19164int numDisplayedScrollingRows = DisplayedBandsInfo.NumDisplayedScrollingRows; 19371isLastVisibleColumn = (DisplayedBandsInfo.FirstDisplayedScrollingCol < 0); 19410if (DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0 && cx < scrollingBounds.Width) 19426dataGridViewColumn = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 19601(indexTmpNext == -1) && (DisplayedBandsInfo.FirstDisplayedScrollingRow == -1)); 19615if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 19617indexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 19743DisplayedBandsInfo.FirstDisplayedFrozenCol = -1; 19744DisplayedBandsInfo.FirstDisplayedFrozenRow = -1; 19745DisplayedBandsInfo.FirstDisplayedScrollingRow = -1; 19746DisplayedBandsInfo.FirstDisplayedScrollingCol = -1; 19747DisplayedBandsInfo.NumDisplayedFrozenRows = 0; 19748DisplayedBandsInfo.NumDisplayedFrozenCols = 0; 19749DisplayedBandsInfo.NumDisplayedScrollingRows = 0; 19750DisplayedBandsInfo.NumDisplayedScrollingCols = 0; 19751DisplayedBandsInfo.NumTotallyDisplayedFrozenRows = 0; 19752DisplayedBandsInfo.NumTotallyDisplayedScrollingRows = 0; 19753DisplayedBandsInfo.LastDisplayedScrollingRow = -1; 19754DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1; 22943if (DisplayedBandsInfo.FirstDisplayedScrollingRow > 0) 22959jumpRows = DisplayedBandsInfo.NumTotallyDisplayedFrozenRows; 22963jumpRows += DisplayedBandsInfo.NumTotallyDisplayedScrollingRows; 23203? DisplayedBandsInfo.NumTotallyDisplayedFrozenRows 23204: DisplayedBandsInfo.NumTotallyDisplayedScrollingRows; 25968else if (DisplayedBandsInfo.FirstDisplayedScrollingRow != -1 25969&& rowIndex >= DisplayedBandsInfo.FirstDisplayedScrollingRow 26002if (DisplayedBandsInfo.FirstDisplayedScrollingCol != -1 26004&& (columnIndex != DisplayedBandsInfo.FirstDisplayedScrollingCol || FirstDisplayedScrollingColumnHiddenWidth > 0)) 26007if (Columns.DisplayInOrder(columnIndex, DisplayedBandsInfo.FirstDisplayedScrollingCol)) 26017columnsToScroll = Columns.GetColumnCount(DataGridViewElementStates.Visible, columnIndex, DisplayedBandsInfo.FirstDisplayedScrollingCol); 26025else if (columnIndex == DisplayedBandsInfo.FirstDisplayedScrollingCol && FirstDisplayedScrollingColumnHiddenWidth > 0) 26037else if (DisplayedBandsInfo.LastTotallyDisplayedScrollingCol == -1 26038|| (DisplayedBandsInfo.LastTotallyDisplayedScrollingCol != columnIndex 26039&& Columns.DisplayInOrder(DisplayedBandsInfo.LastTotallyDisplayedScrollingCol, columnIndex))) 26050int firstDisplayedScrollingColumn = DisplayedBandsInfo.FirstDisplayedScrollingCol; 26059if (firstDisplayedScrollingColumn == DisplayedBandsInfo.FirstDisplayedScrollingCol) 26080if (firstDisplayedScrollingColumn == DisplayedBandsInfo.FirstDisplayedScrollingCol) 26113if (DisplayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0) 26115dataGridViewColumnTmp = Columns[DisplayedBandsInfo.LastTotallyDisplayedScrollingCol]; 26132Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26133dataGridViewColumnTmp = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26149Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26150dataGridViewColumnTmp = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26176newFirstVisibleScrollingCol = Columns[DisplayedBandsInfo.FirstDisplayedScrollingCol]; 26200Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingCol >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingCol < Columns.Count); 26201Debug.Assert(DisplayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && DisplayedBandsInfo.LastTotallyDisplayedScrollingCol < Columns.Count); 26203Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.Count); 26267if (rowIndex < DisplayedBandsInfo.FirstDisplayedScrollingRow) 26277rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26280else if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && rowIndex > DisplayedBandsInfo.FirstDisplayedScrollingRow) 26283int firstDisplayedScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26319Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26352Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow > -1); 26377Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26380int newScrolledOffRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26393Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26394int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26409int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26411DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26415if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26417deltaY = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26418rows = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26422Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow); 26443DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26445Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26459Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26461int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26462int newFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 26508DisplayedBandsInfo.FirstDisplayedScrollingRow = newFirstVisibleScrollingRow; 26514if (DisplayedBandsInfo.FirstDisplayedScrollingRow > oldFirstVisibleScrollingRow) 26516scrollHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26517rowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26520else if (DisplayedBandsInfo.FirstDisplayedScrollingRow < oldFirstVisibleScrollingRow) 26522scrollHeight = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26523rowCount = -Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 28237int firstDisplayedScrollingRowCache = DisplayedBandsInfo.FirstDisplayedScrollingRow; 28317DisplayedBandsInfo.FirstDisplayedScrollingRow = firstDisplayedScrollingRowCache; 28330DisplayedBandsInfo.EnsureDirtyState(); 28428Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28429if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28452Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28453int firstDisplayedScrollingRowHeight = Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow); 28886int numDisplayedFrozenCols = DisplayedBandsInfo.NumDisplayedFrozenCols; 28905int columnIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingCol; 28908int numDisplayedScrollingCols = DisplayedBandsInfo.NumDisplayedScrollingCols; 28984int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29021int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29054int oldFirstVisibleScrollingRow = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29089int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.FirstDisplayedScrollingRow ? rowIndex : DisplayedBandsInfo.FirstDisplayedScrollingRow); 29109int rowIndexTmp, numDisplayedFrozenRows = DisplayedBandsInfo.NumDisplayedFrozenRows; 29127rowIndexTmp = DisplayedBandsInfo.FirstDisplayedScrollingRow; 29130int numDisplayedScrollingRows = DisplayedBandsInfo.NumDisplayedScrollingRows;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
1001rowIndex = dataGridView.DisplayedBandsInfo.FirstDisplayedScrollingRow;