1658 references to DataGridViewElementStates
System.Windows.Forms (1658)
winforms\Managed\System\WinForms\DataGridView.cs (44)
2125
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
2133
DataGridViewElementStates
.Visible,
2134
DataGridViewElementStates
.None);
2211
(this.Rows.GetRowState(value.RowIndex) &
DataGridViewElementStates
.Visible) == 0)
2269
bool previousVisibleColumnExists = (null != this.Columns.GetPreviousColumn(this.Columns[this.ptCurrentCell.X],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None));
2270
bool previousVisibleRowExists = (-1 != this.Rows.GetPreviousRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible));
2287
bool nextVisibleColumnExists = (null != this.Columns.GetNextColumn(this.Columns[this.ptCurrentCell.X],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None));
2288
bool nextVisibleRowExists = (-1 != this.Rows.GetNextRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible));
2306
GetCellCount(
DataGridViewElementStates
.Selected) == 1 &&
2958
ptFirstDisplayedCellAddress.Y = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2993
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
3039
int firstDisplayedRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
3042
if ((this.Rows.GetRowState(firstDisplayedRowIndex) &
DataGridViewElementStates
.Frozen) == 0 &&
3118
int totalVisibleFrozenWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
3148
int maxHorizontalOffset = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible) - displayWidth;
3174
if ((this.Rows.GetRowState(value) &
DataGridViewElementStates
.Visible) == 0)
3178
if ((this.Rows.GetRowState(value) &
DataGridViewElementStates
.Frozen) != 0)
3194
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
3223
int rowsToScroll = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, value);
3388
int widthNotVisible = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible) - this.layout.Data.Width;
3407
int totalVisibleFrozenWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
3460
scrollEventType = this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible, oldFirstVisibleScrollingCol, this.displayedBandsInfo.FirstDisplayedScrollingCol) > 1 ? ScrollEventType.LargeIncrement : ScrollEventType.SmallIncrement;
3465
scrollEventType = this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible, this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol) > 1 ? ScrollEventType.LargeDecrement : ScrollEventType.SmallDecrement;
3514
else if (value > 0 && (this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible) - this.layout.Data.Width) <= 0)
3731
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
3733
(rowState &
DataGridViewElementStates
.ReadOnly) != 0 ||
3735
dataGridViewCell.StateIncludes(
DataGridViewElementStates
.ReadOnly);
3742
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
3743
return (rowState &
DataGridViewElementStates
.Selected) != 0 ||
3745
dataGridViewCell.StateIncludes(
DataGridViewElementStates
.Selected);
3752
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
3753
return (rowState &
DataGridViewElementStates
.Visible) != 0 &&
4580
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
4581
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
5201
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
5288
if (null == this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible))
5292
return -1 != this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (4)
114
if (index < this.owner.Rows.GetRowCount(
DataGridViewElementStates
.Visible))
120
index -= this.owner.Rows.GetRowCount(
DataGridViewElementStates
.Visible);
153
int childCount = this.owner.Rows.GetRowCount(
DataGridViewElementStates
.Visible);
205
int actualDisplayIndex = this.owner.Columns.ColumnIndexToActualDisplayIndex(hti.ColumnIndex,
DataGridViewElementStates
.Visible);
winforms\Managed\System\WinForms\DataGridViewBand.cs (42)
211
bool displayed = (this.State &
DataGridViewElementStates
.Displayed) != 0;
225
this.StateInternal = this.State |
DataGridViewElementStates
.Displayed;
229
this.StateInternal = this.State & ~
DataGridViewElementStates
.Displayed;
233
OnStateChanged(
DataGridViewElementStates
.Displayed);
290
return (this.State &
DataGridViewElementStates
.Frozen) != 0;
294
if (((this.State &
DataGridViewElementStates
.Frozen) != 0) != value)
296
OnStateChanging(
DataGridViewElementStates
.Frozen);
299
this.StateInternal = this.State |
DataGridViewElementStates
.Frozen;
303
this.StateInternal = this.State & ~
DataGridViewElementStates
.Frozen;
305
OnStateChanged(
DataGridViewElementStates
.Frozen);
546
return ((this.State &
DataGridViewElementStates
.ReadOnly) != 0 ||
568
OnStateChanging(
DataGridViewElementStates
.ReadOnly);
574
OnStateChanging(
DataGridViewElementStates
.ReadOnly);
580
if (((this.State &
DataGridViewElementStates
.ReadOnly) != 0) != value)
594
this.StateInternal = this.State |
DataGridViewElementStates
.ReadOnly;
598
this.StateInternal = this.State & ~
DataGridViewElementStates
.ReadOnly;
612
this.StateInternal = this.State |
DataGridViewElementStates
.ReadOnly;
616
this.StateInternal = this.State & ~
DataGridViewElementStates
.ReadOnly;
619
OnStateChanged(
DataGridViewElementStates
.ReadOnly);
632
if ((this.State &
DataGridViewElementStates
.ResizableSet) != 0)
634
return ((this.State &
DataGridViewElementStates
.Resizable) != 0) ? DataGridViewTriState.True : DataGridViewTriState.False;
650
this.StateInternal = this.State & ~
DataGridViewElementStates
.ResizableSet;
654
this.StateInternal = this.State |
DataGridViewElementStates
.ResizableSet;
655
if (((this.State &
DataGridViewElementStates
.Resizable) != 0) != (value == DataGridViewTriState.True))
659
this.StateInternal = this.State |
DataGridViewElementStates
.Resizable;
664
this.StateInternal = this.State & ~
DataGridViewElementStates
.Resizable;
670
OnStateChanged(
DataGridViewElementStates
.Resizable);
685
return (this.State &
DataGridViewElementStates
.Selected) != 0;
727
this.StateInternal = this.State |
DataGridViewElementStates
.Selected;
731
this.StateInternal = this.State & ~
DataGridViewElementStates
.Selected;
735
OnStateChanged(
DataGridViewElementStates
.Selected);
861
return (this.State &
DataGridViewElementStates
.Visible) != 0;
865
if (((this.State &
DataGridViewElementStates
.Visible) != 0) != value)
876
OnStateChanging(
DataGridViewElementStates
.Visible);
879
this.StateInternal = this.State |
DataGridViewElementStates
.Visible;
883
this.StateInternal = this.State & ~
DataGridViewElementStates
.Visible;
885
OnStateChanged(
DataGridViewElementStates
.Visible);
910
dataGridViewBand.StateInternal = this.State & ~(
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed);
973
internal void OnStateChanged(
DataGridViewElementStates
elementState)
998
private void OnStateChanging(
DataGridViewElementStates
elementState)
1043
return (this.State &
DataGridViewElementStates
.ResizableSet) != 0;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
227
DataGridViewElementStates
cellState;
285
DataGridViewElementStates
cellState;
654
DataGridViewElementStates
elementState,
694
DataGridViewElementStates
elementState,
713
bool cellSelected = (elementState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewCell.cs (65)
92
this.StateInternal =
DataGridViewElementStates
.None;
226
Debug.Assert((this.State &
DataGridViewElementStates
.Displayed) == 0);
397
Debug.Assert((this.State &
DataGridViewElementStates
.Frozen) == 0);
461
public
DataGridViewElementStates
InheritedState
580
if ((this.State &
DataGridViewElementStates
.ReadOnly) != 0)
607
this.DataGridView.OnDataGridViewElementStateChanging(this, -1,
DataGridViewElementStates
.ReadOnly);
636
this.StateInternal = this.State |
DataGridViewElementStates
.ReadOnly;
640
this.StateInternal = this.State & ~
DataGridViewElementStates
.ReadOnly;
644
this.DataGridView.OnDataGridViewElementStateChanged(this, -1,
DataGridViewElementStates
.ReadOnly);
657
Debug.Assert((this.State &
DataGridViewElementStates
.Resizable) == 0);
702
if ((this.State &
DataGridViewElementStates
.Selected) != 0)
746
this.StateInternal = this.State |
DataGridViewElementStates
.Selected;
750
this.StateInternal = this.State & ~
DataGridViewElementStates
.Selected;
754
this.DataGridView.OnDataGridViewElementStateChanged(this, -1,
DataGridViewElementStates
.Selected);
973
Debug.Assert((this.State &
DataGridViewElementStates
.Visible) == 0);
1116
internal
DataGridViewElementStates
CellStateFromColumnRowStates(
DataGridViewElementStates
rowState)
1120
DataGridViewElementStates
orFlags =
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Resizable |
DataGridViewElementStates
.Selected;
1121
DataGridViewElementStates
andFlags =
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Visible;
1122
DataGridViewElementStates
cellState = (this.owningColumn.State & orFlags);
1164
dataGridViewCell.StateInternal = this.State & ~
DataGridViewElementStates
.Selected;
1188
out
DataGridViewElementStates
cellState,
1205
DataGridViewElementStates
rowState = this.DataGridView.Rows.GetRowState(rowIndex);
1214
DataGridViewColumn dataGridViewColumn = this.DataGridView.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
1231
rowIndex == this.DataGridView.Rows.GetLastRow(
DataGridViewElementStates
.Visible) /*isLastVisibleRow*/);
2063
public virtual
DataGridViewElementStates
GetInheritedState(int rowIndex)
2065
DataGridViewElementStates
state = this.State |
DataGridViewElementStates
.ResizableSet;
2076
state |= (this.owningRow.GetState(-1) & (
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible));
2079
state |=
DataGridViewElementStates
.Resizable;
2100
DataGridViewElementStates
rowEffectiveState = this.DataGridView.Rows.GetRowState(rowIndex);
2101
state |= (rowEffectiveState & (
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected));
2102
state |= (this.owningColumn.State & (
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected));
2107
state |=
DataGridViewElementStates
.Resizable;
2111
state |=
DataGridViewElementStates
.Visible;
2114
state |=
DataGridViewElementStates
.Displayed;
2119
state |=
DataGridViewElementStates
.Frozen;
3494
DataGridViewElementStates
cellState,
3508
DataGridViewElementStates
cellState,
4390
DataGridViewElementStates
cellState,
5097
int firstVisibleColumnIndex = this.owner.DataGridView.Columns.ColumnIndexToActualDisplayIndex(this.owner.DataGridView.FirstDisplayedScrollingColumnIndex,
DataGridViewElementStates
.Visible);
5098
int visibleColumnIndex = this.owner.DataGridView.Columns.ColumnIndexToActualDisplayIndex(this.owner.ColumnIndex,
DataGridViewElementStates
.Visible);
5271
if (this.owner.OwningRow.Index == this.owner.DataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible))
5285
int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.OwningRow.Index,
DataGridViewElementStates
.Visible);
5289
if (this.owner.OwningRow.Index == this.owner.DataGridView.Rows.GetLastRow(
DataGridViewElementStates
.Visible))
5295
int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.OwningRow.Index,
DataGridViewElementStates
.Visible);
5305
if (this.owner.OwningColumn == this.owner.DataGridView.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible))
5336
DataGridViewElementStates
.Visible,
5337
DataGridViewElementStates
.None).Index;
5344
if (this.owner.OwningColumn == this.owner.DataGridView.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
5345
DataGridViewElementStates
.None))
5378
DataGridViewElementStates
.Visible,
5379
DataGridViewElementStates
.None).Index;
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (4)
22
private
DataGridViewElementStates
cellState;
37
DataGridViewElementStates
cellState,
172
public
DataGridViewElementStates
State
271
DataGridViewElementStates
cellState,
winforms\Managed\System\WinForms\DataGridViewCellStateChangedEventArgs.cs (3)
15
private
DataGridViewElementStates
stateChanged;
18
public DataGridViewCellStateChangedEventArgs(DataGridViewCell dataGridViewCell,
DataGridViewElementStates
stateChanged)
38
public
DataGridViewElementStates
StateChanged
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
546
DataGridViewElementStates
cellState;
614
DataGridViewElementStates
cellState;
840
DataGridViewElementStates
cellState;
1087
int visibleRowIndex = this.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, position.Y);
1088
int visibleColumnIndex = this.DataGridView.Columns.ColumnIndexToActualDisplayIndex(position.X,
DataGridViewElementStates
.Visible);
1107
DataGridViewElementStates
elementState,
1147
DataGridViewElementStates
elementState,
1177
bool cellSelected = (elementState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (7)
1262
for (rowIndex = dataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
1264
rowIndex = dataGridView.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
1286
rowIndex = dataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
1304
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
1326
rowIndex = dataGridView.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (145)
249
internal int ActualDisplayIndexToColumnIndex(int actualDisplayIndex,
DataGridViewElementStates
includeFilter)
255
dataGridViewColumn = GetNextColumn(dataGridViewColumn, includeFilter,
DataGridViewElementStates
.None);
444
internal int ColumnIndexToActualDisplayIndex(int columnIndex,
DataGridViewElementStates
includeFilter)
451
dataGridViewColumn = GetNextColumn(dataGridViewColumn, includeFilter,
DataGridViewElementStates
.None);
524
public int GetColumnCount(
DataGridViewElementStates
includeFilter)
526
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
527
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
536
case
DataGridViewElementStates
.Visible:
542
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
551
if ((includeFilter &
DataGridViewElementStates
.Resizable) == 0)
562
case
DataGridViewElementStates
.Visible:
565
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
572
DataGridViewElementStates
correctedIncludeFilter = includeFilter & ~
DataGridViewElementStates
.Resizable;
585
internal int GetColumnCount(
DataGridViewElementStates
includeFilter, int fromColumnIndex, int toColumnIndex)
587
Debug.Assert((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
588
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) == 0);
589
Debug.Assert((includeFilter &
DataGridViewElementStates
.Resizable) == 0);
599
DataGridViewElementStates
.None);
638
internal float GetColumnsFillWeight(
DataGridViewElementStates
includeFilter)
640
Debug.Assert((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
641
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) == 0);
655
public int GetColumnsWidth(
DataGridViewElementStates
includeFilter)
657
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
658
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
667
case
DataGridViewElementStates
.Visible:
673
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
692
case
DataGridViewElementStates
.Visible:
695
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
703
public DataGridViewColumn GetFirstColumn(
DataGridViewElementStates
includeFilter)
705
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
706
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
733
public DataGridViewColumn GetFirstColumn(
DataGridViewElementStates
includeFilter,
734
DataGridViewElementStates
excludeFilter)
736
if (excludeFilter ==
DataGridViewElementStates
.None)
740
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
741
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
745
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
746
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
774
public DataGridViewColumn GetLastColumn(
DataGridViewElementStates
includeFilter,
775
DataGridViewElementStates
excludeFilter)
777
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
778
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
782
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
783
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
812
DataGridViewElementStates
includeFilter,
813
DataGridViewElementStates
excludeFilter)
819
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
820
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
824
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
825
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
884
DataGridViewElementStates
includeFilter,
885
DataGridViewElementStates
excludeFilter)
891
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
892
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
896
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
897
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1005
internal void InvalidateCachedColumnCount(
DataGridViewElementStates
includeFilter)
1007
Debug.Assert(includeFilter ==
DataGridViewElementStates
.Displayed ||
1008
includeFilter ==
DataGridViewElementStates
.Selected ||
1009
includeFilter ==
DataGridViewElementStates
.ReadOnly ||
1010
includeFilter ==
DataGridViewElementStates
.Resizable ||
1011
includeFilter ==
DataGridViewElementStates
.Frozen ||
1012
includeFilter ==
DataGridViewElementStates
.Visible);
1014
if (includeFilter ==
DataGridViewElementStates
.Visible)
1018
else if (includeFilter ==
DataGridViewElementStates
.Selected)
1034
internal void InvalidateCachedColumnsWidth(
DataGridViewElementStates
includeFilter)
1036
Debug.Assert(includeFilter ==
DataGridViewElementStates
.Displayed ||
1037
includeFilter ==
DataGridViewElementStates
.Selected ||
1038
includeFilter ==
DataGridViewElementStates
.ReadOnly ||
1039
includeFilter ==
DataGridViewElementStates
.Resizable ||
1040
includeFilter ==
DataGridViewElementStates
.Frozen ||
1041
includeFilter ==
DataGridViewElementStates
.Visible);
1043
if (includeFilter ==
DataGridViewElementStates
.Visible)
1047
else if (includeFilter ==
DataGridViewElementStates
.Frozen)
1204
DataGridViewElementStates
columnStates = dataGridViewColumn.State;
1205
if ((columnStates &
DataGridViewElementStates
.Visible) != 0)
1211
((columnStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen))))
1226
if ((columnStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen))
1235
if ((columnStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected))
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (13)
254
DataGridViewElementStates
cellState;
742
DataGridViewElementStates
dataGridViewElementState,
776
DataGridViewElementStates
dataGridViewElementState,
799
bool cellSelected = (dataGridViewElementState &
DataGridViewElementStates
.Selected) != 0;
1462
if (this.Owner.OwningColumn == this.Owner.DataGridView.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible))
1477
DataGridViewElementStates
.Visible,
1478
DataGridViewElementStates
.None).Index;
1480
DataGridViewElementStates
.Visible);
1494
if (this.Owner.OwningColumn == this.Owner.DataGridView.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
1495
DataGridViewElementStates
.None))
1502
DataGridViewElementStates
.Visible,
1503
DataGridViewElementStates
.None).Index;
1505
DataGridViewElementStates
.Visible);
winforms\Managed\System\WinForms\DataGridViewColumnStateChangedEventArgs.cs (3)
15
private
DataGridViewElementStates
stateChanged;
18
public DataGridViewColumnStateChangedEventArgs(DataGridViewColumn dataGridViewColumn,
DataGridViewElementStates
stateChanged)
34
public
DataGridViewElementStates
StateChanged
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
973
DataGridViewElementStates
cellState;
1081
DataGridViewElementStates
cellState;
1515
if ((GetInheritedState(rowIndex) &
DataGridViewElementStates
.Selected) ==
DataGridViewElementStates
.Selected)
2008
DataGridViewElementStates
rowState = this.DataGridView.Rows.GetRowState(rowIndex);
2009
DataGridViewElementStates
cellState = this.CellStateFromColumnRowStates(rowState);
2052
DataGridViewElementStates
elementState,
2098
DataGridViewElementStates
elementState,
2155
bool cellSelected = (elementState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (2)
1325
DataGridViewColumn dataGridViewColumn = this.owner.Columns.GetFirstColumn(
DataGridViewElementStates
.None);
1357
if ((this.owner.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) == 0)
winforms\Managed\System\WinForms\DataGridViewElement.cs (11)
21
private
DataGridViewElementStates
state; // enabled frozen readOnly resizable selected visible
32
this.state =
DataGridViewElementStates
.Visible;
38
this.state = dgveTemplate.State & (
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Resizable |
DataGridViewElementStates
.ResizableSet |
DataGridViewElementStates
.Visible);
46
public virtual
DataGridViewElementStates
State
54
internal
DataGridViewElementStates
StateInternal
62
internal bool StateIncludes(
DataGridViewElementStates
elementState)
67
internal bool StateExcludes(
DataGridViewElementStates
elementState)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (18)
326
public override
DataGridViewElementStates
GetInheritedState(int rowIndex)
328
DataGridViewElementStates
state =
DataGridViewElementStates
.ResizableSet |
DataGridViewElementStates
.ReadOnly;
342
state |= (this.OwningRow.GetState(rowIndex) &
DataGridViewElementStates
.Frozen);
345
state |=
DataGridViewElementStates
.Resizable;
349
state |=
DataGridViewElementStates
.Visible;
352
state |=
DataGridViewElementStates
.Displayed;
363
state |= (this.OwningColumn.State &
DataGridViewElementStates
.Frozen);
367
state |=
DataGridViewElementStates
.Resizable;
371
state |=
DataGridViewElementStates
.Visible;
374
state |=
DataGridViewElementStates
.Displayed;
385
state |=
DataGridViewElementStates
.Frozen;
388
state |=
DataGridViewElementStates
.Resizable;
392
state |=
DataGridViewElementStates
.Visible;
395
state |=
DataGridViewElementStates
.Displayed;
628
DataGridViewElementStates
dataGridViewElementState,
655
bool cellSelected = (dataGridViewElementState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (5)
322
DataGridViewElementStates
cellState;
382
DataGridViewElementStates
cellState;
753
DataGridViewElementStates
elementState,
793
DataGridViewElementStates
elementState,
840
bool cellSelected = (elementState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (5)
566
DataGridViewElementStates
cellState;
626
DataGridViewElementStates
cellState;
944
DataGridViewElementStates
cellState,
985
DataGridViewElementStates
cellState,
1018
bool cellSelected = (cellState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (947)
48
int visibleRowIndex = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, cellAddress.Y);
49
int visibleColumnIndex = this.Columns.ColumnIndexToActualDisplayIndex(cellAddress.X,
DataGridViewElementStates
.Visible);
359
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
369
DataGridViewElementStates
.Visible,
370
DataGridViewElementStates
.None);
459
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
461
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
511
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
516
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
525
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
555
if (this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible) > this.layout.Data.Width)
567
dataGridViewColumn == this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen) ||
568
dataGridViewColumn == this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen))
937
int totalVisibleRowCount = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible);
938
int totalVisibleHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible);
939
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
944
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
945
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
1293
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
1295
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
1311
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
1317
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
1331
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
1339
int rowAboveFirstVisibleScrollingRow = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
1351
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
1375
(this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible) == -1 ||
1376
this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible) == null))
1394
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
1396
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
1400
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
1408
DataGridViewElementStates
.Visible,
1409
DataGridViewElementStates
.None);
1425
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
1430
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
1432
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
1442
DataGridViewElementStates
.Visible,
1443
DataGridViewElementStates
.None);
1458
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
1460
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
1463
((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) != 0));
1464
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) == 0)
1467
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
1475
DataGridViewElementStates
.Visible,
1476
DataGridViewElementStates
.None);
1641
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
1651
DataGridViewElementStates
.Visible,
1652
DataGridViewElementStates
.None);
2029
rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
2046
rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2061
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2079
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
2086
for (rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
2088
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
2158
rowIndex != this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible))
2165
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
2166
bool rowDisplayed = (rowState &
DataGridViewElementStates
.Displayed) != 0;
2202
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
2219
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2234
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2252
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
2259
for (rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
2261
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible))
2435
int rowIndex = this.Rows.GetNextRow(rowIndexStart - 1,
DataGridViewElementStates
.Visible);
2443
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
2485
int frozenWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
2486
int scrollingWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible) - frozenWidth;
3171
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
3254
Debug.Assert(0 == this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible));
3659
DataGridViewColumn firstVisibleFrozenColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
3666
return this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen, firstVisibleFrozenColumn.Index, dataGridViewColumn.Index) < this.displayedBandsInfo.NumDisplayedFrozenCols;
3679
return this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible, firstDisplayedScrollingColumnIndex, dataGridViewColumn.Index) < this.displayedBandsInfo.NumDisplayedScrollingCols;
3712
DataGridViewElementStates
.Visible,
3713
DataGridViewElementStates
.None);
3729
DataGridViewElementStates
.Visible,
3730
DataGridViewElementStates
.None);
4141
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
4152
if (rowIndex > -1 && (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) == 0)
4188
if (this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) >= this.layout.Data.Width)
4195
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
4212
DataGridViewElementStates
.Visible,
4213
DataGridViewElementStates
.None);
4219
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
4257
DataGridViewElementStates
rowState = this.Rows.GetRowState(indexTmp);
4258
if ((rowState &
DataGridViewElementStates
.Frozen) != 0)
4262
if ((rowState &
DataGridViewElementStates
.Visible) == 0)
4265
DataGridViewElementStates
.Visible,
4266
DataGridViewElementStates
.Frozen);
4282
DataGridViewElementStates
.Visible,
4283
DataGridViewElementStates
.Frozen);
4299
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
4306
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
4317
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
4318
return this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) +
4505
int totalVisibleHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible);
4506
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
4564
if (displayWidth <= 0 || this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0)
4575
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.None);
4596
dataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.None,
DataGridViewElementStates
.None);
4599
Debug.Assert(cx <= this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen));
4606
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
4607
DataGridViewElementStates
.Frozen);
4630
DataGridViewElementStates
.Visible,
4631
DataGridViewElementStates
.None);
4662
DataGridViewElementStates
.Visible,
4663
DataGridViewElementStates
.Frozen);
4672
DataGridViewElementStates
.Visible,
4673
DataGridViewElementStates
.Frozen);
4681
DataGridViewElementStates
.Visible,
4682
DataGridViewElementStates
.Frozen);
4724
DataGridViewElementStates
.Visible,
4725
DataGridViewElementStates
.None);
4774
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
4775
if ((rowState &
DataGridViewElementStates
.Frozen) == 0 &&
4776
(rowState &
DataGridViewElementStates
.Visible) != 0)
4780
if ((rowState &
DataGridViewElementStates
.Visible) != 0)
4822
(this.Rows.GetRowState(firstDisplayedScrollingRow) &
DataGridViewElementStates
.Frozen) != 0 ||
4823
(this.Rows.GetRowState(firstDisplayedScrollingRow) &
DataGridViewElementStates
.Visible) == 0
4832
if ((this.Rows.GetRowState(i) &
DataGridViewElementStates
.Visible) != 0)
4848
if ((this.Rows.GetRowState(i) & (
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Visible)) ==
DataGridViewElementStates
.Visible)
5080
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
5081
DataGridViewElementStates
.None);
5084
DataGridViewColumn dataGridViewColumnFirst = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
5094
DataGridViewElementStates
.Visible,
5095
DataGridViewElementStates
.Frozen);
5102
DataGridViewElementStates
.Visible,
5103
DataGridViewElementStates
.Frozen);
5110
DataGridViewElementStates
.Visible,
5111
DataGridViewElementStates
.None);
5127
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
5128
DataGridViewElementStates
.None);
5223
private void CorrectRowFrozenState(DataGridViewRow dataGridViewRow,
DataGridViewElementStates
rowState, int anticipatedRowIndex)
5229
DataGridViewElementStates
.Visible,
5230
DataGridViewElementStates
.None);
5232
(this.Rows.GetRowState(previousRowIndex) &
DataGridViewElementStates
.Frozen) == 0 &&
5233
(rowState &
DataGridViewElementStates
.Frozen) != 0)
5240
DataGridViewElementStates
.Visible,
5241
DataGridViewElementStates
.None);
5243
(this.Rows.GetRowState(nextRowIndex) &
DataGridViewElementStates
.Frozen) != 0 &&
5244
(rowState &
DataGridViewElementStates
.Frozen) == 0)
5256
int rowIndexTmp = this.Rows.GetPreviousRow(rowIndexInserted,
DataGridViewElementStates
.Visible);
5259
previousRowFrozen = (this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Frozen) ==
DataGridViewElementStates
.Frozen;
5263
rowIndexTmp = this.Rows.GetNextRow(rowIndexInserted - 1,
DataGridViewElementStates
.Visible);
5267
nextRowFrozen = (this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Frozen) ==
DataGridViewElementStates
.Frozen;
5292
if (((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Frozen) != 0 && !frozenStateChanging) ||
5293
((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Frozen) == 0 && frozenStateChanging))
5297
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
5300
int dataGridViewRowFirst = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
5308
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Frozen, true);
5310
DataGridViewElementStates
.Visible,
5311
DataGridViewElementStates
.Frozen);
5318
DataGridViewElementStates
.Visible,
5319
DataGridViewElementStates
.Frozen);
5326
DataGridViewElementStates
.Visible);
5340
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Frozen, false);
5342
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
5487
Debug.Assert((this.Rows.GetRowState(this.newRowIndex) &
DataGridViewElementStates
.Visible) != 0);
5513
int frozenVisibleColumnsWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
5533
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
5542
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
5543
DataGridViewElementStates
.None);
5565
DataGridViewElementStates
.Visible,
5566
DataGridViewElementStates
.None);
5693
rectInsertionBar.X = GetColumnXFromIndex(this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible).Index);
5702
if (this.Columns.GetNextColumn(this.Columns[this.trackColumnEdge],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None) == null)
6418
Debug.Assert((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0);
6419
Debug.Assert((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Frozen) == 0);
6427
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6440
if (!this.RowHeadersVisible && this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0)
6459
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0)
6461
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, true);
6463
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6471
rowIndexTmp = this.Rows.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6472
while (rowIndexTmp != -1 && (this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
6474
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6475
rowIndexTmp = this.Rows.GetPreviousRow(rowIndexTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6484
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6486
while (rowIndexTmp != -1 && (this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
6488
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6489
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6494
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6498
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0)
6500
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, true);
6502
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6507
while (rowIndexTmp != -1 && (this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
6509
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6510
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6519
int firstDisplayedFrozenRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6523
lastDisplayedFrozenRowIndex = this.Rows.GetNextRow(firstDisplayedFrozenRowIndex,
DataGridViewElementStates
.Visible, this.displayedBandsInfo.NumDisplayedFrozenRows-2 /*skipRows*/);
6535
lastDisplayedScrollingRowIndex = this.Rows.GetNextRow(this.displayedBandsInfo.FirstDisplayedScrollingRow,
DataGridViewElementStates
.Visible, this.displayedBandsInfo.NumDisplayedScrollingRows - 2 /*skipRows*/);
6548
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0)
6554
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6555
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6567
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0)
6573
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6574
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6585
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible, this.displayedBandsInfo.OldNumDisplayedScrollingRows - 1);
6588
rowIndexTmp = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
6595
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
6597
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6599
rowIndexTmp = this.Rows.GetPreviousRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6605
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6608
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen, this.displayedBandsInfo.OldNumDisplayedFrozenRows - 1);
6611
rowIndexTmp = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6618
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
6620
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, false);
6622
rowIndexTmp = this.Rows.GetPreviousRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
6643
if (!this.ColumnHeadersVisible && this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) == 0)
6665
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
6673
dataGridViewColumnTmp = this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6677
dataGridViewColumnTmp = this.Columns.GetPreviousColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6686
dataGridViewColumnTmp = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
6691
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
6696
dataGridViewColumnTmp = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
6704
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
DataGridViewElementStates
.None);
6712
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
DataGridViewElementStates
.None);
6733
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
6754
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
6768
dataGridViewColumnTmp = this.Columns.GetPreviousColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
6910
public int GetCellCount(
DataGridViewElementStates
includeFilter)
6912
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
6913
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
6921
if ((includeFilter &
DataGridViewElementStates
.Selected) ==
DataGridViewElementStates
.Selected)
6923
if (includeFilter ==
DataGridViewElementStates
.Selected)
6947
displayedRequired = (includeFilter &
DataGridViewElementStates
.Displayed) ==
DataGridViewElementStates
.Displayed;
6948
frozenRequired = (includeFilter &
DataGridViewElementStates
.Frozen) ==
DataGridViewElementStates
.Frozen;
6949
resizableRequired = (includeFilter &
DataGridViewElementStates
.Resizable) ==
DataGridViewElementStates
.Resizable;
6950
readOnlyRequired = (includeFilter &
DataGridViewElementStates
.ReadOnly) ==
DataGridViewElementStates
.ReadOnly;
6951
visibleRequired = (includeFilter &
DataGridViewElementStates
.Visible) ==
DataGridViewElementStates
.Visible;
7004
if ((includeFilter ==
DataGridViewElementStates
.ReadOnly && this.ReadOnly) ||
7005
includeFilter ==
DataGridViewElementStates
.None)
7010
displayedRequired = (includeFilter &
DataGridViewElementStates
.Displayed) ==
DataGridViewElementStates
.Displayed;
7011
frozenRequired = (includeFilter &
DataGridViewElementStates
.Frozen) ==
DataGridViewElementStates
.Frozen;
7012
resizableRequired = (includeFilter &
DataGridViewElementStates
.Resizable) ==
DataGridViewElementStates
.Resizable;
7013
readOnlyRequired = (includeFilter &
DataGridViewElementStates
.ReadOnly) ==
DataGridViewElementStates
.ReadOnly;
7014
visibleRequired = (includeFilter &
DataGridViewElementStates
.Visible) ==
DataGridViewElementStates
.Visible;
7019
if (!visibleRequired || (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0)
7043
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
7046
bool cellDisplayed = (rowState &
DataGridViewElementStates
.Displayed) != 0 &&
7055
bool cellFrozen = (rowState &
DataGridViewElementStates
.Frozen) != 0 ||
7057
dataGridViewCell.StateIncludes(
DataGridViewElementStates
.Frozen);
7073
(rowState &
DataGridViewElementStates
.ReadOnly) != 0 ||
7075
dataGridViewCell.StateIncludes(
DataGridViewElementStates
.ReadOnly);
7083
bool cellVisible = (rowState &
DataGridViewElementStates
.Visible) != 0 &&
7235
if (this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected) == 0)
7242
includeColumnHeaders = (this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Selected) == -1);
7277
dataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7280
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7294
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7310
this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0 /*firstCell*/,
7327
this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0 /*lastCell*/,
7337
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
7340
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7354
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7371
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected);
7373
int nextRowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected);
7378
dataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7383
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7397
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7415
this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0 /*firstCell*/,
7428
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
7448
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7462
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7479
nextRowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected);
7497
if (this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected) == 0)
7505
includeRowHeaders = (this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Selected) == null);
7515
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
7541
DataGridViewColumn lastDataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7546
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7560
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7589
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected);
7608
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7622
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7643
nextRowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
7649
DataGridViewColumn lastDataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7655
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7669
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7700
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected);
7720
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7734
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected,
DataGridViewElementStates
.None);
7751
nextRowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
7776
selectedVisibleRowExists = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected) != 0;
7777
selectedVisibleCellExists = selectedVisibleRowExists && this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) != 0;
7781
selectedVisibleColumnExists = this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected) != 0;
7782
selectedVisibleCellExists = selectedVisibleColumnExists && this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) != 0;
7905
DataGridViewColumn firstVisibleColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
7906
DataGridViewColumn lastVisibleColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
7912
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0)
7929
firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
7930
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
8012
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
8067
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
8097
nextRowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
8114
prevDataGridViewColumn = this.Columns.GetPreviousColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
8174
nextDataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
8274
for (dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
8298
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
8299
DataGridViewElementStates
.None);
8340
DataGridViewElementStates
.Visible,
8341
DataGridViewElementStates
.None);
8420
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
8443
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
8444
DataGridViewElementStates
.None);
8483
DataGridViewElementStates
.Visible,
8484
DataGridViewElementStates
.None);
8538
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
8554
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
8555
DataGridViewElementStates
.None);
8575
dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
8594
DataGridViewElementStates
.Visible,
8595
DataGridViewElementStates
.None);
8602
DataGridViewElementStates
.Visible,
8603
DataGridViewElementStates
.Frozen);
8619
DataGridViewElementStates
.Visible,
8620
DataGridViewElementStates
.Frozen);
8629
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
8633
dataGridViewColumn = this.Columns.GetNextColumn(dataGridViewColumn,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
8642
int visibleRowsHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible);
8643
int frozenVisibleRowsHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
8646
int emptyBackgroundWidth = Math.Max(0, this.layout.Data.Width - this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible));
8673
(this.Rows.GetRowState(this.ptAnchorCell.Y) &
DataGridViewElementStates
.Frozen) != 0 &&
8675
(this.Rows.GetRowState(this.trackRowEdge) &
DataGridViewElementStates
.Frozen) != 0 &&
8677
(this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Frozen) == 0)
8681
int firstUnfrozenRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
8689
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
8708
((this.Rows.GetRowState(this.ptAnchorCell.Y) &
DataGridViewElementStates
.Frozen) == 0 ||
8709
(this.trackRowEdge != -1 && (this.Rows.GetRowState(this.trackRowEdge) &
DataGridViewElementStates
.Frozen) == 0)) &&
8778
int firstUnfrozenColumnIndex = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen).Index;
8786
firstRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
8809
this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen) != null))
8835
this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.LastTotallyDisplayedScrollingCol],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None) == null)
8842
DataGridViewElementStates
.Visible,
8843
DataGridViewElementStates
.None);
8845
for (DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
8846
DataGridViewElementStates
.Frozen);
8849
DataGridViewElementStates
.Visible,
8850
DataGridViewElementStates
.None))
8888
(this.ptAnchorCell.Y != -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) &
DataGridViewElementStates
.Frozen) == 0)
8890
(this.ptCurrentCell.Y != -1 && (this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Frozen) == 0)
8955
this.Columns.GetPreviousColumn(this.Columns[this.displayedBandsInfo.FirstDisplayedScrollingCol],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen) != null)
8991
this.Columns.GetNextColumn(this.Columns[this.displayedBandsInfo.LastTotallyDisplayedScrollingCol],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None) != null))
8994
DataGridViewElementStates
.Visible,
8995
DataGridViewElementStates
.None);
8997
for (DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
8998
DataGridViewElementStates
.Frozen);
9001
DataGridViewElementStates
.Visible,
9002
DataGridViewElementStates
.None))
9080
int preferredWidth = Math.Min(minimumWidth + this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible), proposedConstraints.Width);
9095
int preferredHeight = Math.Min(minimumHeight + this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible), proposedConstraints.Height);
9119
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Displayed) == 0)
9128
for (indexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9143
indexTmp = this.Rows.GetNextRow(indexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9164
indexTmp = this.Rows.GetNextRow(indexTmp,
DataGridViewElementStates
.Visible);
9213
int indexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9224
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9231
Debug.Assert((this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Visible) != 0 &&
9232
(this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Frozen) == 0);
9244
DataGridViewElementStates
.Visible);
9284
Debug.Assert((this.Rows.GetRowState(index) &
DataGridViewElementStates
.Visible) != 0);
9288
int indexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9297
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
9318
indexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
9324
Debug.Assert((this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Visible) != 0 &&
9325
(this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Frozen) == 0);
9334
indexTmp = this.Rows.GetNextRow(indexTmp,
DataGridViewElementStates
.Visible);
9342
DataGridViewElementStates
.Visible,
9343
DataGridViewElementStates
.Frozen);
9352
DataGridViewElementStates
.Visible,
9353
DataGridViewElementStates
.Frozen);
9487
DataGridViewElementStates
.Visible,
9488
DataGridViewElementStates
.None);
9580
indexTmp = this.Rows.GetPreviousRow(hti.row,
DataGridViewElementStates
.Visible);
9663
DataGridViewElementStates
.Visible,
9664
DataGridViewElementStates
.None);
9705
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
9741
DataGridViewElementStates
.Visible);
9764
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
10067
if (this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) == 0)
10078
if ((this.Rows.GetRowState(lo) &
DataGridViewElementStates
.Visible) == 0)
10080
lo = this.Rows.GetNextRow(lo,
DataGridViewElementStates
.Visible);
10090
if ((this.Rows.GetRowState(hi) &
DataGridViewElementStates
.Visible) == 0)
10092
hi = this.Rows.GetPreviousRow(hi,
DataGridViewElementStates
.Visible);
10103
if ((this.Rows.GetRowState(lo) &
DataGridViewElementStates
.Frozen) != 0)
10115
this.Rows.GetRowCount(
DataGridViewElementStates
.Visible,
10139
if ((this.Rows.GetRowState(hi) &
DataGridViewElementStates
.Frozen) ==
DataGridViewElementStates
.Frozen)
10151
else if (this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) == 0)
10166
if ((this.Rows.GetRowState(i) &
DataGridViewElementStates
.Visible) == 0)
10336
int totalVisibleColCount = this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible);
10337
int totalVisibleRowCount = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible);
10338
int totalVisibleWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible);
10339
int totalVisibleFrozenWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
10342
int totalVisibleHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible);
10343
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
10362
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
10363
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
10390
this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
10391
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
10442
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen) &&
10769
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
10781
if ((rowState &
DataGridViewElementStates
.ReadOnly) == 0 &&
10799
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
10801
if ((rowState &
DataGridViewElementStates
.Visible) != 0)
10803
bool rowDisplayed = (rowState &
DataGridViewElementStates
.Displayed) != 0;
10826
if (this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) > 1)
10932
float weightSum = this.Columns.GetColumnsFillWeight(
DataGridViewElementStates
.None) + dataGridViewColumn.FillWeight;
11003
float weightSum = this.Columns.GetColumnsFillWeight(
DataGridViewElementStates
.None);
11135
internal void OnAddingRow(DataGridViewRow dataGridViewRow,
DataGridViewElementStates
rowState, bool checkFrozenState)
11164
if ((this.ReadOnly || dataGridViewColumn.ReadOnly) && dataGridViewCell.StateIncludes(
DataGridViewElementStates
.ReadOnly))
11518
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
11520
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
11810
rowDisplayed = (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Displayed) != 0;
12461
DataGridViewColumn dataGridViewLastVisibleColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
12462
DataGridViewElementStates
.None);
12477
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
12728
((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) != 0))
12739
this.ptAnchorCell.Y > -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) &
DataGridViewElementStates
.Selected) != 0)
12792
else if ((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) == 0)
12795
((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) != 0));
12812
(((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) != 0) ||
13169
if (e.StateChanged ==
DataGridViewElementStates
.Selected)
13184
if (e.StateChanged ==
DataGridViewElementStates
.ReadOnly &&
13636
DataGridViewRowStateChangedEventArgs dgvrsce = new DataGridViewRowStateChangedEventArgs(dataGridViewRow,
DataGridViewElementStates
.Displayed);
13668
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Displayed);
13675
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Displayed);
13994
float weightSum = this.Columns.GetColumnsFillWeight(
DataGridViewElementStates
.None) - dataGridViewColumn.FillWeight + fillWeight;
14177
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
14479
DataGridViewColumnStateChangedEventArgs dgvrsce = new DataGridViewColumnStateChangedEventArgs(dataGridViewColumn,
DataGridViewElementStates
.Displayed);
14616
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.trackColumnEdge],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14623
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[hti.col],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14630
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14637
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.trackColumnEdge],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14644
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[hti.col],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14651
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14658
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14661
dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14668
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14671
dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.trackColumn],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
14791
case
DataGridViewElementStates
.Selected:
14798
case
DataGridViewElementStates
.Frozen:
14832
case
DataGridViewElementStates
.Visible:
14898
if (e.StateChanged ==
DataGridViewElementStates
.ReadOnly &&
14906
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.ReadOnly) == 0 &&
15132
internal void OnDataGridViewElementStateChanged(DataGridViewElement element, int index,
DataGridViewElementStates
elementState)
15169
if ((elementState &
DataGridViewElementStates
.Selected) ==
DataGridViewElementStates
.Selected)
15182
internal void OnDataGridViewElementStateChanging(DataGridViewElement element, int index,
DataGridViewElementStates
elementState)
15190
case
DataGridViewElementStates
.Frozen:
15191
case
DataGridViewElementStates
.Visible:
15192
if (elementState ==
DataGridViewElementStates
.Visible)
15216
if (elementState ==
DataGridViewElementStates
.Frozen &&
15224
CorrectColumnFrozenStates(dataGridViewColumn, elementState ==
DataGridViewElementStates
.Frozen);
15227
case
DataGridViewElementStates
.ReadOnly:
15265
case
DataGridViewElementStates
.Frozen:
15266
case
DataGridViewElementStates
.Visible:
15267
if (elementState ==
DataGridViewElementStates
.Visible && this.ptCurrentCell.Y == rowIndex)
15269
Debug.Assert((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0);
15283
CorrectRowFrozenStates(dataGridViewRow, rowIndex, elementState ==
DataGridViewElementStates
.Frozen);
15286
case
DataGridViewElementStates
.ReadOnly:
15288
(this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.ReadOnly) == 0 &&
15323
case
DataGridViewElementStates
.ReadOnly:
15496
int totalVisibleHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible);
15497
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
15779
this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 1 /*forceCurrentCellSelection*/);
15816
this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) == 1 /*forceCurrentCellSelection*/);
15997
DataGridViewElementStates
rowState,
17021
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
17028
Debug.Assert(totalVisibleFrozenHeight == this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen));
17421
DataGridViewRowStateChangedEventArgs dgvrsce = new DataGridViewRowStateChangedEventArgs(dataGridViewRow,
DataGridViewElementStates
.Displayed);
17488
DataGridViewElementStates
.Visible,
17489
DataGridViewElementStates
.None);
17505
DataGridViewElementStates
.Visible,
17506
DataGridViewElementStates
.None);
17701
int rowIndexPrevious = this.Rows.GetPreviousRow(rowIndexDeleted,
DataGridViewElementStates
.Visible);
17702
int rowIndexNext = this.Rows.GetNextRow(rowIndexDeleted,
DataGridViewElementStates
.Visible);
17993
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
17994
invalidatePreferredSizeCache = ((rowState &
DataGridViewElementStates
.Visible) != 0);
18257
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
18258
if ((rowState &
DataGridViewElementStates
.Visible) == 0)
18272
bool rowDisplayed = (rowState &
DataGridViewElementStates
.Displayed) != 0;
18349
rowDisplayed = (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Displayed) != 0;
18361
(this.rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader && rowIndex != -1 && rowIndex == this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible)))
18426
((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) != 0))
18432
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
18483
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
18505
else if ((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Visible) == 0)
18517
(this.Rows.GetRowState(this.ptAnchorCell.Y) &
DataGridViewElementStates
.Selected) != 0)
18578
else if ((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) == 0)
18581
((this.Rows.GetRowState(hti.row) &
DataGridViewElementStates
.Selected) != 0));
18958
SelectRowRange(this.Rows.GetNextRow(this.trackRowEdge,
DataGridViewElementStates
.Visible),
18964
SelectRowRange(this.Rows.GetNextRow(hti.row,
DataGridViewElementStates
.Visible),
18970
SelectRowRange(this.Rows.GetNextRow(this.trackRow,
DataGridViewElementStates
.Visible),
18977
this.Rows.GetPreviousRow(this.trackRowEdge,
DataGridViewElementStates
.Visible),
18984
this.Rows.GetPreviousRow(hti.row,
DataGridViewElementStates
.Visible),
18991
this.Rows.GetPreviousRow(this.trackRow,
DataGridViewElementStates
.Visible),
18997
SelectRowRange(this.Rows.GetNextRow(this.trackRow,
DataGridViewElementStates
.Visible),
19000
this.Rows.GetPreviousRow(this.trackRow,
DataGridViewElementStates
.Visible),
19007
this.Rows.GetPreviousRow(this.trackRow,
DataGridViewElementStates
.Visible),
19009
SelectRowRange(this.Rows.GetNextRow(this.trackRow,
DataGridViewElementStates
.Visible),
19104
DataGridViewElementStates
newState =
DataGridViewElementStates
.None;
19109
rowVisible = ((newState &
DataGridViewElementStates
.Visible) != 0);
19118
case
DataGridViewElementStates
.Selected:
19125
case
DataGridViewElementStates
.Frozen:
19128
if ((newState &
DataGridViewElementStates
.Frozen) == 0)
19138
case
DataGridViewElementStates
.Visible:
19140
if (!rowVisible && (newState &
DataGridViewElementStates
.Displayed) != 0)
19143
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.Displayed, false);
19149
bool rowDisplayed = (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Displayed) != 0;
19187
if (rowVisible && this.Rows.GetRowCount(
DataGridViewElementStates
.Visible) > 1)
19212
if (e.StateChanged ==
DataGridViewElementStates
.ReadOnly &&
19218
if ((newState &
DataGridViewElementStates
.ReadOnly) == 0 &&
19399
int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
19405
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
19649
int rowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible);
19694
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
19698
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
19714
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, true);
19715
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
19725
Debug.Assert((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Visible) != 0);
19731
if ((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) != 0)
19747
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, true);
19748
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
19770
int visibleRowsHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Displayed);
19791
int visibleColumnsWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Displayed);
19903
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
19925
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
19926
DataGridViewElementStates
.None);
20002
DataGridViewElementStates
.Visible,
20003
DataGridViewElementStates
.None);
20119
indexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
20144
indexTmpNext = this.Rows.GetNextRow(indexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
20170
Debug.Assert((this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Frozen) == 0);
20171
Debug.Assert((this.Rows.GetRowState(indexTmp) &
DataGridViewElementStates
.Visible) != 0);
20196
indexTmpNext = this.Rows.GetNextRow(indexTmp,
DataGridViewElementStates
.Visible);
20373
int totalVisibleFrozenWidth = this.Columns.GetColumnsWidth(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
20380
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Frozen) == 0)
20382
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
20707
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
20709
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
20718
nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible);
21212
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21243
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21291
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21346
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21433
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21550
DataGridViewColumn dataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
21551
DataGridViewElementStates
.None);
21553
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
21554
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
21629
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21645
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
21661
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
22006
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
22008
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
22083
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
22099
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
22115
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
22507
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
22509
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
22518
DataGridViewElementStates
.Visible,
22519
DataGridViewElementStates
.None);
23245
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
23254
nextScreenVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
23265
if ((this.Rows.GetRowState(nextScreenVisibleRowIndex) &
DataGridViewElementStates
.Frozen) != 0)
23269
int firstDisplayedScrollingRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
23276
jumpRows = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible,
23295
nextScreenVisibleRowIndexTmp = this.Rows.GetNextRow(nextScreenVisibleRowIndex,
DataGridViewElementStates
.Visible);
23420
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
23442
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
23485
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
23494
previousScreenVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
23506
if ((this.Rows.GetRowState(previousScreenVisibleRowIndex) &
DataGridViewElementStates
.Frozen) != 0)
23522
previousScreenVisibleRowIndexTmp = this.Rows.GetPreviousRow(previousScreenVisibleRowIndex,
DataGridViewElementStates
.Visible);
23530
if ((this.Rows.GetRowState(previousScreenVisibleRowIndex) &
DataGridViewElementStates
.Frozen) != 0)
23533
int firstDisplayedScrollingRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
23541
previousScreenVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
23659
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
23681
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
23745
DataGridViewColumn dataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
23746
DataGridViewElementStates
.None);
23748
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
23757
DataGridViewElementStates
.Visible,
23758
DataGridViewElementStates
.None);
24521
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) == 0)
24743
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
24745
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
24753
previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible);
25158
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
25185
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
25225
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
25271
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
25344
if ((this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Selected) != 0)
26043
for (int rowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
26045
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible))
26067
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
26068
if ((rowState &
DataGridViewElementStates
.ResizableSet) ==
DataGridViewElementStates
.ResizableSet)
26070
return (rowState &
DataGridViewElementStates
.Resizable) ==
DataGridViewElementStates
.Resizable;
26083
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
26085
if ((rowState &
DataGridViewElementStates
.Visible) == 0)
26090
if ((rowState &
DataGridViewElementStates
.Frozen) != 0)
26141
columnsToScroll = this.Columns.GetColumnCount(
DataGridViewElementStates
.Visible, columnIndex, this.displayedBandsInfo.FirstDisplayedScrollingCol);
26189
DataGridViewElementStates
.Visible,
26190
DataGridViewElementStates
.None).Index;
26208
DataGridViewElementStates
.Visible,
26209
DataGridViewElementStates
.None).Index;
26237
DataGridViewElementStates
.Visible,
26238
DataGridViewElementStates
.None);
26254
DataGridViewElementStates
.Visible,
26255
DataGridViewElementStates
.None);
26273
DataGridViewElementStates
.Visible,
26274
DataGridViewElementStates
.Frozen);
26294
for (DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible,
26295
DataGridViewElementStates
.Frozen);
26298
DataGridViewElementStates
.Visible,
26299
DataGridViewElementStates
.None))
26315
Debug.Assert((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0);
26373
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Frozen) == 0)
26386
rowsToScroll = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, rowIndex, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26401
firstDisplayedScrollingRow = this.Rows.GetNextRow(firstDisplayedScrollingRow,
DataGridViewElementStates
.Visible);
26426
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen));
26433
int frozenRowsThickness = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
26456
(this.Rows.GetRowState(this.ptCurrentCell.Y) &
DataGridViewElementStates
.Frozen) == 0)
26483
int firstVisibleScrollingRow = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.Frozen);
26485
int newScrolledOffRowCount = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, firstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26506
DataGridViewElementStates
.Visible);
26520
deltaY = -this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26521
rows = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26535
DataGridViewElementStates
.Visible,
26536
DataGridViewElementStates
.Frozen);
26569
newFirstVisibleScrollingRow = this.Rows.GetNextRow(newFirstVisibleScrollingRow,
DataGridViewElementStates
.Visible);
26583
DataGridViewElementStates
.Visible,
26584
DataGridViewElementStates
.Frozen);
26590
DataGridViewElementStates
.Visible,
26591
DataGridViewElementStates
.Frozen);
26616
scrollHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26617
rowCount = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26622
scrollHeight = -this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26623
rowCount = -this.Rows.GetRowCount(
DataGridViewElementStates
.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26676
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
26677
if ((rowState &
DataGridViewElementStates
.Selected) == 0)
26711
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
26712
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
27221
DataGridViewElementStates
.Visible,
27222
DataGridViewElementStates
.None);
27249
DataGridViewElementStates
.Visible,
27250
DataGridViewElementStates
.None);
27329
DataGridViewElementStates
.Visible,
27330
DataGridViewElementStates
.None);
27374
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) == 0)
27492
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
27498
if ((rowState &
DataGridViewElementStates
.ReadOnly) == 0 &&
27531
if ((rowState &
DataGridViewElementStates
.ReadOnly) != 0)
27533
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.ReadOnly, false);
27595
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
27596
if (((rowState &
DataGridViewElementStates
.ReadOnly) != 0) != readOnly)
27612
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.ReadOnly, true);
27617
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.ReadOnly, false);
27645
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
27651
if ((rowState &
DataGridViewElementStates
.Selected) == 0 &&
27660
if ((dataGridViewCell.State &
DataGridViewElementStates
.Selected) != 0)
27714
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.Selected, false);
27750
(this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) == 0)
27878
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) == 0)
27881
((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) != 0));
27887
if ((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) != 0)
27890
((this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Selected) != 0));
28076
DataGridViewElementStates
rowState = this.Rows.GetRowState(rowIndex);
28077
if (((rowState &
DataGridViewElementStates
.Selected) != 0) != selected)
28087
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.Selected, true);
28094
this.Rows.SetRowState(rowIndex,
DataGridViewElementStates
.Selected, false);
28248
int visibleFrozenRows = this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
28251
int rowVFIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
28253
this.Rows.SetRowState(rowVFIndex,
DataGridViewElementStates
.Frozen, false);
28254
Debug.Assert(0 == this.Rows.GetRowCount(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen));
28309
int rowVIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
28313
rowVIndex = this.Rows.GetNextRow(rowVIndex,
DataGridViewElementStates
.Visible);
28317
this.Rows.SetRowState(rowVIndex,
DataGridViewElementStates
.Frozen, true);
28486
int totalVisibleFrozenHeight = this.Rows.GetRowsHeight(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
28545
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
28547
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
28556
DataGridViewElementStates
.Visible,
28557
DataGridViewElementStates
.None);
28566
nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible);
28701
DataGridViewColumn dataGridViewColumn = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
28703
int firstVisibleRowIndex = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible);
28713
DataGridViewElementStates
.Visible,
28714
DataGridViewElementStates
.None);
28724
previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y,
DataGridViewElementStates
.Visible);
28727
dataGridViewColumn = this.Columns.GetLastColumn(
DataGridViewElementStates
.Visible,
28728
DataGridViewElementStates
.None);
28731
int lastVisibleRowIndex = this.Rows.GetLastRow(
DataGridViewElementStates
.Visible);
28944
dataGridViewColumnTmp = this.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
28953
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
DataGridViewElementStates
.None);
28973
dataGridViewColumnTmp = this.Columns.GetNextColumn(dataGridViewColumnTmp,
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29040
bool rowVisible = (rowIndex >= 0 && (this.Rows.GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) != 0);
29074
rowIndex = this.Rows.GetNextRow(rowIndex,
DataGridViewElementStates
.Visible);
29158
rowIndexTmp = this.Rows.GetFirstRow(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
29162
if (((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0) == displayed)
29164
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, displayed);
29166
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
29180
if (((this.Rows.GetRowState(rowIndexTmp) &
DataGridViewElementStates
.Displayed) == 0) == displayed)
29182
this.Rows.SetRowState(rowIndexTmp,
DataGridViewElementStates
.Displayed, displayed);
29184
rowIndexTmp = this.Rows.GetNextRow(rowIndexTmp,
DataGridViewElementStates
.Visible);
29278
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29295
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29315
this.Rows.GetNextRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29324
this.Rows.GetNextRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29340
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29349
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29358
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29362
this.Rows.GetNextRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29373
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29379
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29395
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[newEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29402
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29414
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29420
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29428
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[newEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29435
this.Rows.GetPreviousRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29451
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29455
this.Rows.GetNextRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29462
DataGridViewColumn dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[newEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29495
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29504
dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29507
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29534
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29544
dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29549
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29569
this.Rows.GetNextRow(anchorRowIndex,
DataGridViewElementStates
.Visible),
29579
DataGridViewColumn dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[newEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29606
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29618
dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29621
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29647
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29657
dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[oldEdgeColumnIndex],
DataGridViewElementStates
.Visible,
DataGridViewElementStates
.None);
29662
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29681
this.Rows.GetNextRow(oldEdgeRowIndex,
DataGridViewElementStates
.Visible),
29701
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29709
this.Rows.GetPreviousRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29725
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
29733
this.Rows.GetNextRow(newEdgeRowIndex,
DataGridViewElementStates
.Visible),
winforms\Managed\System\WinForms\DataGridViewRow.cs (36)
418
public override
DataGridViewElementStates
State
1275
DataGridViewElementStates
rowState,
1292
if (cellsPaintSelectionBackground && (rowState &
DataGridViewElementStates
.Selected) != 0)
1330
return (GetState(rowIndex) &
DataGridViewElementStates
.Displayed) != 0;
1363
return (GetState(rowIndex) &
DataGridViewElementStates
.Frozen) != 0;
1443
return (this.GetState(rowIndex) &
DataGridViewElementStates
.ReadOnly) != 0 ||
1449
if ((GetState(rowIndex) &
DataGridViewElementStates
.ResizableSet) != 0)
1451
return ((GetState(rowIndex) &
DataGridViewElementStates
.Resizable) != 0) ? DataGridViewTriState.True : DataGridViewTriState.False;
1465
return (GetState(rowIndex) &
DataGridViewElementStates
.Selected) != 0;
1472
public virtual
DataGridViewElementStates
GetState(int rowIndex)
1494
return (GetState(rowIndex) &
DataGridViewElementStates
.Visible) != 0;
1497
internal void OnSharedStateChanged(int sharedRowIndex,
DataGridViewElementStates
elementState)
1505
internal void OnSharedStateChanging(int sharedRowIndex,
DataGridViewElementStates
elementState)
1516
DataGridViewElementStates
rowState,
1590
DataGridViewElementStates
rowState,
1608
DataGridViewElementStates
cellState =
DataGridViewElementStates
.None;
1615
DataGridViewColumn dataGridViewColumn = dataGridView.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen);
1635
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen,
1636
DataGridViewElementStates
.None);
1722
DataGridViewElementStates
.Visible,
1723
DataGridViewElementStates
.None);
1778
DataGridViewElementStates
rowState,
1938
int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, this.owner.Index);
1957
int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, this.owner.Index);
2183
int columnIndex = this.owner.DataGridView.Columns.ActualDisplayIndexToColumnIndex(index,
DataGridViewElementStates
.Visible);
2195
int result = this.owner.DataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible);
2241
if (this.owner.Index != this.owner.DataGridView.Rows.GetLastRow(
DataGridViewElementStates
.Visible))
2243
int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.Index,
DataGridViewElementStates
.Visible);
2244
int actualDisplayIndex = this.owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, nextVisibleRow);
2260
if (this.owner.Index != this.owner.DataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible))
2262
int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.Index,
DataGridViewElementStates
.Visible);
2263
int actualDisplayIndex = this.owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, previousVisibleRow);
2335
int firstVisibleCell = dataGridView.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible).Index;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (234)
44
private List<
DataGridViewElementStates
> rowStates;
189
this.rowStates = new List<
DataGridViewElementStates
>();
358
Debug.Assert((dataGridViewRow.State & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
360
dataGridViewRow.StateInternal = dataGridViewRow.State |
DataGridViewElementStates
.Visible;
381
DataGridViewElementStates
rowState = dataGridViewRow.State;
401
Debug.Assert((rowState & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
517
DataGridViewElementStates
rowTemplateState = rowTemplate.State;
518
Debug.Assert((rowTemplateState & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
604
Debug.Assert((dataGridViewRow.State & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
636
return AddCopyInternal(indexSource,
DataGridViewElementStates
.None,
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed, false /*newRow*/);
639
internal int AddCopyInternal(int indexSource,
DataGridViewElementStates
dgvesAdd,
DataGridViewElementStates
dgvesRemove, bool newRow)
663
DataGridViewElementStates
rowState = this.rowStates[indexSource] & ~dgvesRemove;
716
return AddCopiesInternal(indexSource, count,
DataGridViewElementStates
.None,
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed);
719
internal int AddCopiesInternal(int indexSource, int count,
DataGridViewElementStates
dgvesAdd,
DataGridViewElementStates
dgvesRemove)
731
DataGridViewElementStates
rowTemplateState = this.rowStates[indexSource] & ~dgvesRemove;
737
private int AddCopiesPrivate(DataGridViewRow rowTemplate,
DataGridViewElementStates
rowTemplateState, int count)
821
dataGridViewRow.StateInternal =
DataGridViewElementStates
.None;
835
DataGridViewElementStates
rowState = rowTemplate.State & ~(
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed);
912
Debug.Assert((dataGridViewRow.State & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
1003
Debug.Assert(visibleRowIndex < GetRowCount(
DataGridViewElementStates
.Visible));
1011
if ((GetRowState(i) &
DataGridViewElementStates
.Visible) ==
DataGridViewElementStates
.Visible)
1025
public int GetFirstRow(
DataGridViewElementStates
includeFilter)
1027
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1028
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1037
case
DataGridViewElementStates
.Visible:
1043
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1049
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
1066
public int GetFirstRow(
DataGridViewElementStates
includeFilter,
1067
DataGridViewElementStates
excludeFilter)
1069
if (excludeFilter ==
DataGridViewElementStates
.None)
1073
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1074
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1078
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1079
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1088
case
DataGridViewElementStates
.Visible:
1094
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1100
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
1117
public int GetLastRow(
DataGridViewElementStates
includeFilter)
1119
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1120
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1129
case
DataGridViewElementStates
.Visible:
1135
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1141
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
1157
internal int GetNextRow(int indexStart,
DataGridViewElementStates
includeFilter, int skipRows)
1173
public int GetNextRow(int indexStart,
DataGridViewElementStates
includeFilter)
1175
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1176
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1195
DataGridViewElementStates
includeFilter,
1196
DataGridViewElementStates
excludeFilter)
1198
if (excludeFilter ==
DataGridViewElementStates
.None)
1202
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1203
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1207
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1208
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1226
public int GetPreviousRow(int indexStart,
DataGridViewElementStates
includeFilter)
1228
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1229
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1248
DataGridViewElementStates
includeFilter,
1249
DataGridViewElementStates
excludeFilter)
1251
if (excludeFilter ==
DataGridViewElementStates
.None)
1255
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1256
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1260
if ((excludeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1261
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1279
public int GetRowCount(
DataGridViewElementStates
includeFilter)
1281
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1282
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1293
case
DataGridViewElementStates
.Visible:
1299
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1305
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
1324
case
DataGridViewElementStates
.Visible:
1327
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1330
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected:
1337
internal int GetRowCount(
DataGridViewElementStates
includeFilter, int fromRowIndex, int toRowIndex)
1355
public int GetRowsHeight(
DataGridViewElementStates
includeFilter)
1357
if ((includeFilter & ~(
DataGridViewElementStates
.Displayed |
DataGridViewElementStates
.Frozen |
DataGridViewElementStates
.Resizable |
1358
DataGridViewElementStates
.ReadOnly |
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Visible)) != 0)
1369
case
DataGridViewElementStates
.Visible:
1375
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1394
case
DataGridViewElementStates
.Visible:
1397
case
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen:
1405
internal int GetRowsHeight(
DataGridViewElementStates
includeFilter, int fromRowIndex, int toRowIndex)
1422
private bool GetRowsHeightExceedLimit(
DataGridViewElementStates
includeFilter, int fromRowIndex, int toRowIndex, int heightLimit)
1443
public virtual
DataGridViewElementStates
GetRowState(int rowIndex)
1560
DataGridViewElementStates
rowTemplateState = rowTemplate.State;
1561
Debug.Assert((rowTemplateState & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
1669
Debug.Assert((dataGridViewRow.State & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
1735
DataGridViewElementStates
rowTemplateState = GetRowState(indexSource) & ~(
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed);
1739
private void InsertCopiesPrivate(DataGridViewRow rowTemplate,
DataGridViewElementStates
rowTemplateState, int indexDestination, int count)
1839
dataGridViewRow.StateInternal =
DataGridViewElementStates
.None;
1849
DataGridViewElementStates
rowState = rowTemplate.State & ~(
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed);
1943
Debug.Assert((dataGridViewRow.State & (
DataGridViewElementStates
.Selected |
DataGridViewElementStates
.Displayed)) == 0);
1963
internal void InvalidateCachedRowCount(
DataGridViewElementStates
includeFilter)
1965
Debug.Assert(includeFilter ==
DataGridViewElementStates
.Displayed ||
1966
includeFilter ==
DataGridViewElementStates
.Selected ||
1967
includeFilter ==
DataGridViewElementStates
.ReadOnly ||
1968
includeFilter ==
DataGridViewElementStates
.Resizable ||
1969
includeFilter ==
DataGridViewElementStates
.Frozen ||
1970
includeFilter ==
DataGridViewElementStates
.Visible);
1972
if (includeFilter ==
DataGridViewElementStates
.Visible)
1976
else if (includeFilter ==
DataGridViewElementStates
.Frozen)
1980
else if (includeFilter ==
DataGridViewElementStates
.Selected)
1998
internal void InvalidateCachedRowsHeight(
DataGridViewElementStates
includeFilter)
2000
Debug.Assert(includeFilter ==
DataGridViewElementStates
.Displayed ||
2001
includeFilter ==
DataGridViewElementStates
.Selected ||
2002
includeFilter ==
DataGridViewElementStates
.ReadOnly ||
2003
includeFilter ==
DataGridViewElementStates
.Resizable ||
2004
includeFilter ==
DataGridViewElementStates
.Frozen ||
2005
includeFilter ==
DataGridViewElementStates
.Visible);
2007
if (includeFilter ==
DataGridViewElementStates
.Visible)
2011
else if (includeFilter ==
DataGridViewElementStates
.Frozen)
2099
if ((GetRowState(rowIndex) &
DataGridViewElementStates
.Visible) == 0)
2118
if ((GetRowState(rowIndex) &
DataGridViewElementStates
.Frozen) != 0)
2122
GetRowsHeightExceedLimit(
DataGridViewElementStates
.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height);
2127
useRowShortcut = GetRowsHeightExceedLimit(
DataGridViewElementStates
.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + this.DataGridView.VerticalScrollingOffset) &&
2137
int displayedRowsHeightBeforeAddition = GetRowsHeight(
DataGridViewElementStates
.Visible) - this.DataGridView.VerticalScrollingOffset - dataGridViewRow.GetHeight(rowIndex);
2149
DataGridViewElementStates
rowStates = GetRowState(rowIndex);
2150
bool deletedRowVisible = (rowStates &
DataGridViewElementStates
.Visible) != 0;
2151
bool deletedRowFrozen = (rowStates &
DataGridViewElementStates
.Frozen) != 0;
2166
GetRowsHeightExceedLimit(
DataGridViewElementStates
.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + SystemInformation.HorizontalScrollBarHeight);
2177
useRowShortcut = GetRowsHeightExceedLimit(
DataGridViewElementStates
.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + this.DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) &&
2396
internal void SetRowState(int rowIndex,
DataGridViewElementStates
state, bool value)
2398
Debug.Assert(state ==
DataGridViewElementStates
.Displayed || state ==
DataGridViewElementStates
.Selected || state ==
DataGridViewElementStates
.ReadOnly || state ==
DataGridViewElementStates
.Resizable || state ==
DataGridViewElementStates
.Frozen || state ==
DataGridViewElementStates
.Visible);
2406
if (state ==
DataGridViewElementStates
.Frozen ||
2407
state ==
DataGridViewElementStates
.Visible ||
2408
state ==
DataGridViewElementStates
.ReadOnly)
2428
case
DataGridViewElementStates
.Displayed:
2433
case
DataGridViewElementStates
.Selected:
2438
case
DataGridViewElementStates
.Visible:
2443
case
DataGridViewElementStates
.Frozen:
2448
case
DataGridViewElementStates
.ReadOnly:
2453
case
DataGridViewElementStates
.Resizable:
2467
internal
DataGridViewElementStates
SharedRowState(int rowIndex)
2520
DataGridViewElementStates
rowStates = this.rowStates[rowIndex1];
2537
DataGridViewElementStates
rowStates = GetRowState(rowIndex);
2538
if ((rowStates &
DataGridViewElementStates
.Visible) != 0)
2544
((rowStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen))))
2561
if ((rowStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Frozen))
2574
if ((rowStates & (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected)) == (
DataGridViewElementStates
.Visible |
DataGridViewElementStates
.Selected))
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (13)
324
DataGridViewElementStates
cellState;
380
DataGridViewElementStates
cellState;
714
DataGridViewElementStates
cellState,
755
DataGridViewElementStates
dataGridViewElementState,
791
bool cellSelected = (dataGridViewElementState &
DataGridViewElementStates
.Selected) != 0;
1348
if (this.Owner.OwningRow != null && this.Owner.DataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) > 0)
1364
if (this.Owner.OwningRow.Index == this.Owner.DataGridView.Rows.GetLastRow(
DataGridViewElementStates
.Visible))
1370
int nextVisibleRow = this.Owner.DataGridView.Rows.GetNextRow(this.Owner.OwningRow.Index,
DataGridViewElementStates
.Visible);
1371
int actualDisplayIndex = this.Owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, nextVisibleRow);
1393
if (this.Owner.OwningRow.Index == this.Owner.DataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible))
1408
int previousVisibleRow = this.Owner.DataGridView.Rows.GetPreviousRow(this.Owner.OwningRow.Index,
DataGridViewElementStates
.Visible);
1409
int actualDisplayIndex = this.Owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible, 0, previousVisibleRow);
1475
if (this.Owner.DataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) > 0)
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (4)
23
private
DataGridViewElementStates
rowState;
34
DataGridViewElementStates
rowState,
147
public
DataGridViewElementStates
State
259
DataGridViewElementStates
rowState,
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (4)
23
private
DataGridViewElementStates
rowState;
35
DataGridViewElementStates
rowState,
166
public
DataGridViewElementStates
State
278
DataGridViewElementStates
rowState,
winforms\Managed\System\WinForms\DataGridViewRowStateChangedEventArgs.cs (3)
15
private
DataGridViewElementStates
stateChanged;
18
public DataGridViewRowStateChangedEventArgs(DataGridViewRow dataGridViewRow,
DataGridViewElementStates
stateChanged)
34
public
DataGridViewElementStates
StateChanged
winforms\Managed\System\WinForms\DataGridViewSelectedCellsAccessibleObject.cs (5)
66
if (index >= 0 && index < this.owner.GetCellCount(
DataGridViewElementStates
.Selected))
78
return this.owner.GetCellCount(
DataGridViewElementStates
.Selected);
104
if (this.owner.GetCellCount(
DataGridViewElementStates
.Selected) > 0)
113
if (this.owner.GetCellCount(
DataGridViewElementStates
.Selected) > 0)
115
return this.owner.SelectedCell(this.owner.GetCellCount(
DataGridViewElementStates
.Selected) - 1).AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (5)
324
DataGridViewElementStates
cellState;
381
DataGridViewElementStates
cellState;
627
DataGridViewElementStates
cellState,
667
DataGridViewElementStates
cellState,
706
bool cellSelected = (cellState &
DataGridViewElementStates
.Selected) != 0;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (11)
66
DataGridViewElementStates
cellState;
124
DataGridViewElementStates
cellState;
210
DataGridViewElementStates
cellState,
250
DataGridViewElementStates
cellState,
280
bool cellSelected = (cellState &
DataGridViewElementStates
.Selected) != 0;
620
if (this.Owner.DataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0)
643
if (this.Owner.DataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) > 0 &&
644
this.Owner.DataGridView.Rows.GetRowCount(
DataGridViewElementStates
.Visible) > 0)
648
DataGridViewRow row = this.Owner.DataGridView.Rows[this.Owner.DataGridView.Rows.GetFirstRow(
DataGridViewElementStates
.Visible)];
649
DataGridViewColumn col = this.Owner.DataGridView.Columns.GetFirstColumn(
DataGridViewElementStates
.Visible);
688
if (dataGridView.Columns.GetColumnCount(
DataGridViewElementStates
.Visible) == 0)
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (3)
158
if (index < this.owner.Columns.GetColumnCount(
DataGridViewElementStates
.Visible))
160
int actualColumnIndex = this.owner.Columns.ActualDisplayIndexToColumnIndex(index,
DataGridViewElementStates
.Visible);
176
int result = this.owner.Columns.GetColumnCount(
DataGridViewElementStates
.Visible);