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