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