167 references to GetRowState
System.Windows.Forms (167)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
1738
if (!Columns[value.ColumnIndex].Visible || (Rows.
GetRowState
(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
2422
if ((Rows.
GetRowState
(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0
2528
if ((Rows.
GetRowState
(value) & DataGridViewElementStates.Visible) == 0)
2533
if ((Rows.
GetRowState
(value) & DataGridViewElementStates.Frozen) != 0)
2920
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
2931
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
2941
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
3118
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);
4175
if (rowIndex > -1 && (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
4285
DataGridViewElementStates rowState = Rows.
GetRowState
(indexTmp);
4792
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
4836
&& ((Rows.
GetRowState
(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0
4837
|| (Rows.
GetRowState
(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0))
4844
if ((Rows.
GetRowState
(i) & DataGridViewElementStates.Visible) != 0)
4861
if ((Rows.
GetRowState
(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
5231
&& (Rows.
GetRowState
(previousRowIndex) & DataGridViewElementStates.Frozen) == 0
5244
&& (Rows.
GetRowState
(nextRowIndex) & DataGridViewElementStates.Frozen) != 0
5260
previousRowFrozen = (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5268
nextRowFrozen = (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5291
if (((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging)
5292
|| ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5476
Debug.Assert((Rows.
GetRowState
(NewRowIndex) & DataGridViewElementStates.Visible) != 0);
6395
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
6396
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6436
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6450
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6465
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6477
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6487
while (rowIndexTmp != -1 && (Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6524
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6543
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6572
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6597
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6611
DataGridViewElementStates rowStateDbg = Rows.
GetRowState
(rowIndexTmp);
6957
if (!visibleRequired || (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0)
6984
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
7822
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0)
8598
&& (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0
8600
&& (Rows.
GetRowState
(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0
8602
&& (Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Frozen) == 0)
8636
&& ((Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0
8637
|| (_trackRowEdge != -1 && (Rows.
GetRowState
(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0))
8817
if (((_ptAnchorCell.Y != -1 && (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8818
|| (_ptCurrentCell.Y != -1 && (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0))
9035
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9141
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0
9142
&& (Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9199
Debug.Assert((Rows.
GetRowState
(index) & DataGridViewElementStates.Visible) != 0);
9240
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0
9241
&& (Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9902
if ((Rows.
GetRowState
(lo) & DataGridViewElementStates.Visible) == 0)
9914
if ((Rows.
GetRowState
(hi) & DataGridViewElementStates.Visible) == 0)
9927
if ((Rows.
GetRowState
(lo) & DataGridViewElementStates.Frozen) != 0)
9964
if ((Rows.
GetRowState
(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
9991
if ((Rows.
GetRowState
(i) & DataGridViewElementStates.Visible) == 0)
10596
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
10626
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
11586
rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
12398
if (isControlDown && ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0))
12410
&& _ptAnchorCell.Y > -1 && (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12466
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) == 0)
12469
((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0));
12492
&& (((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0)
14446
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0
14788
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
14809
&& (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.ReadOnly) == 0
17563
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
17783
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
17871
rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
17943
if (isControlDown && ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0))
18038
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Visible) == 0)
18051
&& (Rows.
GetRowState
(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18116
else if ((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) == 0)
18119
((Rows.
GetRowState
(hti._row) & DataGridViewElementStates.Selected) != 0));
18565
newState = Rows.
GetRowState
(rowIndex);
18619
bool rowDisplayed = (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
19139
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19146
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19166
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19172
if ((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19179
Debug.Assert((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19602
Rows.
GetRowState
(indexTmp),
19621
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Frozen) == 0);
19622
Debug.Assert((Rows.
GetRowState
(indexTmp) & DataGridViewElementStates.Visible) != 0);
19658
Rows.
GetRowState
(indexTmp),
19838
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
20701
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20738
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20790
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20850
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20948
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21158
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21179
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21196
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21632
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21653
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21670
&& (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22944
if ((Rows.
GetRowState
(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23115
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23142
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23205
int jumpRows = (Rows.
GetRowState
(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0
23227
if ((Rows.
GetRowState
(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23373
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23400
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24317
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24967
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24999
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25040
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25088
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25170
if ((Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25949
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
25960
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
26208
Debug.Assert((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
26267
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26353
if (EditingControl is not null && (Rows.
GetRowState
(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26580
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27338
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) == 0)
27475
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27582
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27625
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
27735
if (!Columns[columnIndex].Visible || (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) == 0)
27870
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) == 0)
27873
((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0));
27879
if ((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0)
27882
((Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Selected) != 0));
28072
DataGridViewElementStates rowState = Rows.
GetRowState
(rowIndex);
28980
bool rowVisible = (rowIndex >= 0 && (Rows.
GetRowState
(rowIndex) & DataGridViewElementStates.Visible) != 0);
29119
if (((Rows.
GetRowState
(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29138
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);