10 writes to FirstDisplayedScrollingRow
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (10)
4787
DisplayedBandsInfo.FirstDisplayedFrozenRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
=
4902
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= firstDisplayedScrollingRow;
6410
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= rowIndex;
10195
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= oldfirstDisplayedScrollingRow;
10253
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= oldfirstDisplayedScrollingRow;
19734
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= -1;
26403
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
26435
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
26500
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= newFirstVisibleScrollingRow;
28309
DisplayedBandsInfo.
FirstDisplayedScrollingRow
= firstDisplayedScrollingRowCache;
121 references to FirstDisplayedScrollingRow
System.Windows.Forms (121)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (10)
2338
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
2340
ptFirstDisplayedCellAddress.Y = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
2345
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
== -1);
2422
&& DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
2424
firstDisplayedRowIndex = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
2521
get => DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
2555
if (value == DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
2576
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
2578
if (value > DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
2580
int rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.
FirstDisplayedScrollingRow
, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (110)
508
rowIndex = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
1336
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
1340
&& oldFirstVisibleScrollingRow == DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
1349
oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
1352
int rowAboveFirstVisibleScrollingRow = Rows.GetPreviousRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
1360
rowIndex = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
1368
while (oldFirstVisibleScrollingRow != DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
2058
rowIndex = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
2220
rowIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
4331
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
4336
while (rowIndex != DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
4338
Debug.Assert(rowIndex < DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
4350
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
4353
return Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.
FirstDisplayedScrollingRow
, lastVisibleRowIndex) +
4520
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
4525
Debug.Assert(oldFirstVisibleScrollingRow == DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
4771
int firstDisplayedScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
4910
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
< nRows, "firstDisplayedScrollingRow larger than number of rows");
6431
int rowIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
6451
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
!= -1);
6452
rowIndexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6512
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
!= -1)
6516
DisplayedBandsInfo.
FirstDisplayedScrollingRow
,
6519
: DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
6524
&& rowIndexTmp < DisplayedBandsInfo.
FirstDisplayedScrollingRow
6541
&& (DisplayedBandsInfo.
FirstDisplayedScrollingRow
== -1 || DisplayedBandsInfo.
FirstDisplayedScrollingRow
< rowIndexTmp)
8607
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
8643
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
8655
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
8657
if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
) <=
8824
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
8840
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
8842
if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
) <=
9065
if (!rowFound && DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
9067
for (indexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
9140
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
9142
indexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
9220
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0)
9222
if (index >= DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
9225
indexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
9259
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
!= -1);
9260
indexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
,
9444
if (hti._row != DisplayedBandsInfo.
FirstDisplayedScrollingRow
|| DisplayedBandsInfo.NumDisplayedFrozenRows > 0)
9583
if (hti._row != DisplayedBandsInfo.
FirstDisplayedScrollingRow
|| DisplayedBandsInfo.NumDisplayedFrozenRows > 0)
9940
else if (lo >= DisplayedBandsInfo.
FirstDisplayedScrollingRow
9943
DisplayedBandsInfo.
FirstDisplayedScrollingRow
,
9953
top = GetRowDisplayRectangle(DisplayedBandsInfo.
FirstDisplayedScrollingRow
, cutOverflow: true).Top;
9972
else if (hi > DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
10186
oldfirstDisplayedScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
10213
oldfirstDisplayedScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
16570
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
16573
&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
16580
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
16584
if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
17495
int oldfirstDisplayedScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
17497
if (oldfirstDisplayedScrollingRow != DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
19150
rowIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
19590
(indexTmpNext == -1) && (DisplayedBandsInfo.
FirstDisplayedScrollingRow
== -1));
19604
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0 && cy < boundingRect.Height)
19606
indexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
22937
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
> 0)
25960
else if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
!= -1
25961
&& rowIndex >= DisplayedBandsInfo.
FirstDisplayedScrollingRow
26195
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= -1 && DisplayedBandsInfo.
FirstDisplayedScrollingRow
< Rows.Count);
26259
if (rowIndex < DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
26269
rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26272
else if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0 && rowIndex > DisplayedBandsInfo.
FirstDisplayedScrollingRow
)
26275
int firstDisplayedScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
26311
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26344
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
> -1);
26369
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
26372
int newScrolledOffRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26385
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
26386
int newFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
26401
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
26407
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
> oldFirstVisibleScrollingRow)
26409
deltaY = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26410
rows = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26414
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
== oldFirstVisibleScrollingRow);
26437
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
== newFirstVisibleScrollingRow);
26451
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
26453
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
26454
int newFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
26506
if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
> oldFirstVisibleScrollingRow)
26508
scrollHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26509
rowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
26512
else if (DisplayedBandsInfo.
FirstDisplayedScrollingRow
< oldFirstVisibleScrollingRow)
26514
scrollHeight = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.
FirstDisplayedScrollingRow
, oldFirstVisibleScrollingRow);
26515
rowCount = -Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.
FirstDisplayedScrollingRow
, oldFirstVisibleScrollingRow);
28229
int firstDisplayedScrollingRowCache = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
28420
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
28421
if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
) <=
28444
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingRow
>= 0);
28445
int firstDisplayedScrollingRowHeight = Rows.SharedRow(DisplayedBandsInfo.
FirstDisplayedScrollingRow
).GetHeight(DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
28976
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
29013
int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.
FirstDisplayedScrollingRow
? rowIndex : DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
29046
int oldFirstVisibleScrollingRow = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
29081
int topEdge = GetRowYFromIndex(oldFirstVisibleScrollingRow == DisplayedBandsInfo.
FirstDisplayedScrollingRow
? rowIndex : DisplayedBandsInfo.
FirstDisplayedScrollingRow
);
29119
rowIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingRow
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
999
rowIndex = dataGridView.DisplayedBandsInfo.
FirstDisplayedScrollingRow
;