167 references to GetRowState
System.Windows.Forms (167)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
1744
if (!Columns[value.ColumnIndex].Visible || (Rows.
GetRowState
(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
2428
if ((Rows.
GetRowState
(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0
2534
if ((Rows.
GetRowState
(value) & DataGridViewElementStates.Visible) == 0)
2539
if ((Rows.
GetRowState
(value) & DataGridViewElementStates.Frozen) != 0)
2926
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
2937
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
2947
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
3124
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.ReadOnly) == 0);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1255
if ((_owner.Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (124)
1480
((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0));
1481
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) == 0)
2154
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
4172
if (rowIndex > -1 && (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
4282
DataGridViewElementStates rowState = Rows.
GetRowState
(indexTmp);
4789
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
4833
&& ((Rows.
GetRowState
(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0
4834
|| (Rows.
GetRowState
(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0))
4841
if ((Rows.
GetRowState
(i) & DataGridViewElementStates.Visible) != 0)
4858
if ((Rows.
GetRowState
(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
5228
&& (Rows.
GetRowState
(previousRowIndex) & DataGridViewElementStates.Frozen) == 0
5241
&& (Rows.
GetRowState
(nextRowIndex) & DataGridViewElementStates.Frozen) != 0
5257
previousRowFrozen = (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5265
nextRowFrozen = (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5288
if (((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging)
5289
|| ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5473
Debug.Assert((Rows.
GetRowState
(NewRowIndex) & DataGridViewElementStates.Visible) != 0);
6392
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
6393
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6433
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6447
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6462
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6474
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6484
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6521
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6540
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6569
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6594
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6608
DataGridViewElementStates rowStateDbg = Rows.
GetRowState
(rowIndexTmp);
6954
if (!visibleRequired || (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0)
6981
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
7819
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0)
8595
&& (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0
8597
&& (Rows.
GetRowState
(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0
8599
&& (Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Frozen) == 0)
8633
&& ((Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0
8634
|| (_trackRowEdge != -1 && (Rows.
GetRowState
(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0))
8814
if (((_ptAnchorCell.Y != -1 && (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8815
|| (_ptCurrentCell.Y != -1 && (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0))
9032
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9138
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0
9139
&& (Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9196
Debug.Assert((Rows.
GetRowState
(index) & DataGridViewElementStates.Visible) != 0);
9237
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0
9238
&& (Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9899
if ((Rows.
GetRowState
(lo) & DataGridViewElementStates.Visible) == 0)
9911
if ((Rows.
GetRowState
(hi) & DataGridViewElementStates.Visible) == 0)
9924
if ((Rows.
GetRowState
(lo) & DataGridViewElementStates.Frozen) != 0)
9961
if ((Rows.
GetRowState
(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
9988
if ((Rows.
GetRowState
(i) & DataGridViewElementStates.Visible) == 0)
10593
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
10623
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
11583
rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
12395
if (isControlDown && ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0))
12407
&& _ptAnchorCell.Y > -1 && (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12463
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) == 0)
12466
((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0));
12489
&& (((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0)
14443
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0
14785
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
14806
&& (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.ReadOnly) == 0
17560
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
17780
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
17868
rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
17940
if (isControlDown && ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0))
18035
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Visible) == 0)
18048
&& (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18113
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) == 0)
18116
((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0));
18562
newState = Rows.
GetRowState
(rowIndex);
18616
bool rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
19136
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19143
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19163
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19169
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19176
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19599
Rows.
GetRowState
(indexTmp),
19618
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
19619
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0);
19655
Rows.
GetRowState
(indexTmp),
19835
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
20698
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20735
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20787
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20847
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20945
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21155
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21176
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21193
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21629
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21650
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21667
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22941
if ((Rows.
GetRowState
(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23112
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23139
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23202
int jumpRows = (Rows.
GetRowState
(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0
23224
if ((Rows.
GetRowState
(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23370
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23397
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24314
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24964
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24996
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25037
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25085
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25167
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25946
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
25957
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
26205
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
26264
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26350
if (EditingControl is not null && (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26577
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27335
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) == 0)
27472
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27579
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27622
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27732
if (!Columns[columnIndex].Visible || (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
27867
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) == 0)
27870
((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0));
27876
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0)
27879
((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0));
28069
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
28977
bool rowVisible = (rowIndex >= 0 && (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
29116
if (((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29135
if (((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (8)
163
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
265
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
444
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
514
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
546
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
751
Debug.Assert(DataGridView.Rows.
GetRowState
(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State);
972
DataGridViewElementStates rowState = DataGridView.Rows.
GetRowState
(rowIndex);
1809
DataGridViewElementStates rowEffectiveState = DataGridView.Rows.
GetRowState
(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1767
DataGridViewElementStates rowState = DataGridView.Rows.
GetRowState
(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1386
return DataGridView.Rows.
GetRowState
(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (24)
863
if ((
GetRowState
(i) & DataGridViewElementStates.Visible) == DataGridViewElementStates.Visible)
914
while (index < _items.Count && !((
GetRowState
(index) & includeFilter) == includeFilter))
970
while (index < _items.Count && (!((
GetRowState
(index) & includeFilter) == includeFilter) || !((
GetRowState
(index) & excludeFilter) == 0)))
1014
while (index >= 0 && !((
GetRowState
(index) & includeFilter) == includeFilter))
1048
while (index < _items.Count && !((
GetRowState
(index) & includeFilter) == includeFilter))
1080
while (index < _items.Count && (!((
GetRowState
(index) & includeFilter) == includeFilter) || !((
GetRowState
(index) & excludeFilter) == 0)))
1099
while (index >= 0 && !((
GetRowState
(index) & includeFilter) == includeFilter))
1131
while (index >= 0 && (!((
GetRowState
(index) & includeFilter) == includeFilter) || !((
GetRowState
(index) & excludeFilter) == 0)))
1179
if ((
GetRowState
(rowIndex) & includeFilter) == includeFilter)
1221
Debug.Assert((
GetRowState
(toRowIndex) & includeFilter) == includeFilter);
1226
if ((
GetRowState
(rowIndex) & includeFilter) == includeFilter)
1268
if ((
GetRowState
(rowIndex) & includeFilter) == includeFilter)
1291
Debug.Assert((
GetRowState
(toRowIndex) & includeFilter) == includeFilter);
1296
if ((
GetRowState
(rowIndex) & includeFilter) == includeFilter)
1309
Debug.Assert(toRowIndex == _items.Count || (
GetRowState
(toRowIndex) & includeFilter) == includeFilter);
1314
if ((
GetRowState
(rowIndex) & includeFilter) == includeFilter)
1606
DataGridViewElementStates rowTemplateState =
GetRowState
(indexSource) & ~(DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed);
1972
if ((
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
1992
if ((
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) != 0)
2024
DataGridViewElementStates rowStates =
GetRowState
(rowIndex);
2430
DataGridViewElementStates rowStates =
GetRowState
(rowIndex);