10 writes to FirstDisplayedScrollingRow
System.Windows.Forms (10)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (10)
4766
this.displayedBandsInfo.FirstDisplayedFrozenRow = this.displayedBandsInfo.
FirstDisplayedScrollingRow
=
4889
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= firstDisplayedScrollingRow;
6430
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= rowIndex;
10368
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= oldfirstDisplayedScrollingRow;
10423
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= oldfirstDisplayedScrollingRow;
20288
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= -1;
26514
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
26544
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
26608
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
28319
this.displayedBandsInfo.
FirstDisplayedScrollingRow
= firstDisplayedScrollingRowCache;
118 references to FirstDisplayedScrollingRow
System.Windows.Forms (118)
winforms\Managed\System\WinForms\DataGridView.cs (9)
2962
if (this.displayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
2964
ptFirstDisplayedCellAddress.Y = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
3043
this.displayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
3045
firstDisplayedRowIndex = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
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);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1309
rowIndex = dataGridView.DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (108)
521
rowIndex = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
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
;
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) +
4747
int firstDisplayedScrollingRow = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
4897
Debug.Assert(this.displayedBandsInfo.
FirstDisplayedScrollingRow
< nRows, "firstDisplayedScrollingRow larger than number of rows");
6451
int rowIndexTmp = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
6470
Debug.Assert(this.displayedBandsInfo.
FirstDisplayedScrollingRow
!= -1);
6471
rowIndexTmp = this.Rows.GetPreviousRow(this.displayedBandsInfo.
FirstDisplayedScrollingRow
, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6531
if (this.displayedBandsInfo.
FirstDisplayedScrollingRow
!= -1)
6535
lastDisplayedScrollingRowIndex = this.Rows.GetNextRow(this.displayedBandsInfo.
FirstDisplayedScrollingRow
, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedScrollingRows - 2 /*skipRows*/);
6539
lastDisplayedScrollingRowIndex = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
6545
rowIndexTmp < this.displayedBandsInfo.
FirstDisplayedScrollingRow
&&
6562
(this.displayedBandsInfo.
FirstDisplayedScrollingRow
== -1 || this.displayedBandsInfo.
FirstDisplayedScrollingRow
< rowIndexTmp) &&
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
) <=
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
) <=
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)
9738
if (hti.row != this.displayedBandsInfo.
FirstDisplayedScrollingRow
|| this.displayedBandsInfo.NumDisplayedFrozenRows > 0)
10114
else if (lo >= this.displayedBandsInfo.
FirstDisplayedScrollingRow
&&
10116
this.displayedBandsInfo.
FirstDisplayedScrollingRow
,
10126
top = this.GetRowDisplayRectangle(this.displayedBandsInfo.
FirstDisplayedScrollingRow
, true /*cutOverflow*/).Top;
10145
else if (hi > this.displayedBandsInfo.
FirstDisplayedScrollingRow
)
10360
oldfirstDisplayedScrollingRow = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
10386
oldfirstDisplayedScrollingRow = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
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
) >
17943
int oldfirstDisplayedScrollingRow = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
17945
if (oldfirstDisplayedScrollingRow != this.displayedBandsInfo.
FirstDisplayedScrollingRow
)
19722
rowIndexTmp = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
20155
(indexTmpNext == -1) && (this.displayedBandsInfo.
FirstDisplayedScrollingRow
== -1));
20167
if (this.displayedBandsInfo.
FirstDisplayedScrollingRow
>= 0 && cy < boundingRect.Height)
20169
indexTmp = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;
23267
if (this.displayedBandsInfo.
FirstDisplayedScrollingRow
> 0)
26094
else if (this.displayedBandsInfo.
FirstDisplayedScrollingRow
!= -1 &&
26095
rowIndex >= this.displayedBandsInfo.
FirstDisplayedScrollingRow
&&
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
;
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);
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
;
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
;
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
);
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
);
29172
rowIndexTmp = this.displayedBandsInfo.
FirstDisplayedScrollingRow
;