26 references to GetRowCount
System.Windows.Forms (26)
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
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);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (21)
937
int totalVisibleRowCount = this.Rows.
GetRowCount
(DataGridViewElementStates.Visible);
944
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
945
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
6643
if (!this.ColumnHeadersVisible && this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) == 0)
7235
if (this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7776
selectedVisibleRowExists = this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
7782
selectedVisibleCellExists = selectedVisibleColumnExists && this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) != 0;
10067
if (this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) == 0)
10151
else if (this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0)
10337
int totalVisibleRowCount = this.Rows.
GetRowCount
(DataGridViewElementStates.Visible);
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) &&
10826
if (this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) > 1)
15816
this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) == 1 /*forceCurrentCellSelection*/);
19187
if (rowVisible && this.Rows.
GetRowCount
(DataGridViewElementStates.Visible) > 1)
26426
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
28248
int visibleFrozenRows = this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28254
Debug.Assert(0 == this.Rows.
GetRowCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (1)
1003
Debug.Assert(visibleRowIndex <
GetRowCount
(DataGridViewElementStates.Visible));
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
644
this.Owner.DataGridView.Rows.
GetRowCount
(DataGridViewElementStates.Visible) > 0)