6 writes to FirstDisplayedScrollingCol
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2731
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= ComputeFirstVisibleScrollingColumn();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
4581
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= -1;
4631
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= DisplayedBandsInfo.LastTotallyDisplayedScrollingCol = -1;
4762
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= firstDisplayedScrollingCol;
10243
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= ComputeFirstVisibleScrollingColumn();
19735
DisplayedBandsInfo.
FirstDisplayedScrollingCol
= -1;
77 references to FirstDisplayedScrollingCol
System.Windows.Forms (77)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (17)
2378
else if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
2380
firstDisplayedColumnIndex = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
2393
else if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
2395
firstDisplayedColumnIndexDbg2 = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
2441
get => DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
2475
if (value == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
2503
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0);
2504
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
== value
2505
|| Columns.DisplayInOrder(DisplayedBandsInfo.
FirstDisplayedScrollingCol
, value));
2509
while (DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= value
2687
int oldFirstVisibleScrollingCol = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
2738
&& DisplayedBandsInfo.
FirstDisplayedScrollingCol
> -1)
2746
if (oldFirstVisibleScrollingCol == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
2750
else if (Columns.DisplayInOrder(oldFirstVisibleScrollingCol, DisplayedBandsInfo.
FirstDisplayedScrollingCol
))
2752
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingCol, DisplayedBandsInfo.
FirstDisplayedScrollingCol
) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement;
2756
Debug.Assert(Columns.DisplayInOrder(DisplayedBandsInfo.
FirstDisplayedScrollingCol
, oldFirstVisibleScrollingCol));
2757
scrollEventType = Columns.GetColumnCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.
FirstDisplayedScrollingCol
, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (60)
3624
int firstDisplayedScrollingColumnIndex = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
4531
Debug.Assert(newFirstVisibleScrollingCol == DisplayedBandsInfo.
FirstDisplayedScrollingCol
);
4534
int oldFirstVisibleScrollingCol = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
4537
Debug.Assert(oldFirstVisibleScrollingCol == DisplayedBandsInfo.
FirstDisplayedScrollingCol
);
4573
int firstDisplayedScrollingCol = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
4764
Debug.Assert((DisplayedBandsInfo.NumDisplayedScrollingCols > 0 && DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= -1)
4765
|| (DisplayedBandsInfo.NumDisplayedScrollingCols == 0 && DisplayedBandsInfo.
FirstDisplayedScrollingCol
== -1));
5541
if (cx < cxMax && DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
5549
dataGridViewColumn = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
6635
int columnIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
6656
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= -1);
6657
dataGridViewColumnTmp = Columns.GetPreviousColumn(Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
], DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6706
&& DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= -1
6707
&& columnIndexTmp != DisplayedBandsInfo.
FirstDisplayedScrollingCol
6708
&& Columns.DisplayInOrder(columnIndexTmp, DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
6727
&& (DisplayedBandsInfo.
FirstDisplayedScrollingCol
== -1
6728
|| (DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= columnIndexTmp
6729
&& Columns.DisplayInOrder(DisplayedBandsInfo.
FirstDisplayedScrollingCol
, columnIndexTmp)))
8247
if (!columnFound && DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
8249
for (dataGridViewColumn = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
8272
if (dataGridViewColumn.Index == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
8295
if (dataGridViewColumn.Index == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
8381
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
8383
dataGridViewColumn = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
8493
dataGridViewColumn = DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0
8494
? Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
]
8522
dataGridViewColumn = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
8699
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0);
8722
&& DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0
8725
Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
],
8751
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
8764
Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
],
8873
&& DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0
8876
Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
],
8910
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0
8918
Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
],
9520
if (hti._col != DisplayedBandsInfo.
FirstDisplayedScrollingCol
|| DisplayedBandsInfo.LastTotallyDisplayedScrollingCol >= 0)
14326
Debug.Assert(Columns.DisplayInOrder(dataGridViewColumn.Index, DisplayedBandsInfo.
FirstDisplayedScrollingCol
));
17147
if (dataGridViewColumn.Visible && !dataGridViewColumn.Frozen && DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0)
17150
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
== dataGridViewColumn.Index)
17156
else if (Columns.DisplayInOrder(DisplayedBandsInfo.
FirstDisplayedScrollingCol
, dataGridViewColumn.Index))
19360
isLastVisibleColumn = (DisplayedBandsInfo.
FirstDisplayedScrollingCol
< 0);
19399
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0 && cx < scrollingBounds.Width)
19415
dataGridViewColumn = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
25994
if (DisplayedBandsInfo.
FirstDisplayedScrollingCol
!= -1
25996
&& (columnIndex != DisplayedBandsInfo.
FirstDisplayedScrollingCol
|| FirstDisplayedScrollingColumnHiddenWidth > 0))
25999
if (Columns.DisplayInOrder(columnIndex, DisplayedBandsInfo.
FirstDisplayedScrollingCol
))
26009
columnsToScroll = Columns.GetColumnCount(DataGridViewElementStates.Visible, columnIndex, DisplayedBandsInfo.
FirstDisplayedScrollingCol
);
26017
else if (columnIndex == DisplayedBandsInfo.
FirstDisplayedScrollingCol
&& FirstDisplayedScrollingColumnHiddenWidth > 0)
26042
int firstDisplayedScrollingColumn = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;
26051
if (firstDisplayedScrollingColumn == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
26072
if (firstDisplayedScrollingColumn == DisplayedBandsInfo.
FirstDisplayedScrollingCol
)
26124
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0);
26125
dataGridViewColumnTmp = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
26141
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= 0);
26142
dataGridViewColumnTmp = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
26168
newFirstVisibleScrollingCol = Columns[DisplayedBandsInfo.
FirstDisplayedScrollingCol
];
26192
Debug.Assert(DisplayedBandsInfo.
FirstDisplayedScrollingCol
>= -1 && DisplayedBandsInfo.
FirstDisplayedScrollingCol
< Columns.Count);
28897
int columnIndexTmp = DisplayedBandsInfo.
FirstDisplayedScrollingCol
;