70 references to DataGridRowsLength
System.Windows.Forms (70)
winforms\Managed\System\WinForms\DataGrid.cs (68)
910
if (
DataGridRowsLength
== 0 || this.myGridTable.GridColumnStyles == null || this.myGridTable.GridColumnStyles.Count == 0)
935
int localGridRowsLength =
DataGridRowsLength
;
1034
localGridRows[
DataGridRowsLength
- 1] = new DataGridAddNewRow(this, this.myGridTable,
DataGridRowsLength
-1);
1035
SetDataGridRows(localGridRows,
DataGridRowsLength
);
1045
if (localGridRowsLength !=
DataGridRowsLength
)
1047
Debug.Assert(localGridRowsLength ==
DataGridRowsLength
+ 1, "this is the only change that could have happened");
1048
currentRow = (currentRow == localGridRowsLength - 1) ?
DataGridRowsLength
- 1 : currentRow;
1096
if (currentRow == this.
DataGridRowsLength
- 1 && currentRowSaved == this.
DataGridRowsLength
- 2 && DataGridRows[currentRow] is DataGridAddNewRow)
1402
vertScrollBar.Maximum = Math.Max(0,
DataGridRowsLength
- 1);
1420
Debug.WriteLineIf(CompModSwitches.DataGridCursor.TraceVerbose, "DataGridCursor: There are now " +
DataGridRowsLength
.ToString(CultureInfo.InvariantCulture) + " rows.");
3016
if (rowIndex < 0 || rowIndex >=
DataGridRowsLength
)
3026
if (rowIndex < 0 || rowIndex >=
DataGridRowsLength
)
3123
Debug.Assert(
DataGridRowsLength
== DataGridRows.Length, "how can this fail?");
3126
int currentRowCount =
DataGridRowsLength
;
3182
SetDataGridRows(null, this.
DataGridRowsLength
);
3220
if (currentRow < this.
DataGridRowsLength
) {
3239
if (this.
DataGridRowsLength
> this.listManager.Count + (policy.AllowAdd?1:0) && !gridState[GRIDSTATE_inDeleteRow]) {
3661
se.NewValue = Math.Min(se.NewValue,
DataGridRowsLength
- numTotallyVisibleRows);
3962
localGridRows[
DataGridRowsLength
- 1] = new DataGridAddNewRow(this, this.myGridTable,
DataGridRowsLength
-1);
3963
SetDataGridRows(localGridRows,
DataGridRowsLength
);
4084
if (row <
DataGridRowsLength
&& (localGridRows[row] is DataGridRelationshipRow) && ((DataGridRelationshipRow)localGridRows[row]).Expanded)
4386
newRow = Math.Max(0, Math.Min(newRow,
DataGridRowsLength
- numTotallyVisibleRows));
5266
int nRows =
DataGridRowsLength
;
5309
int nRows =
DataGridRowsLength
;
5644
int numRows =
DataGridRowsLength
;
5905
if (
DataGridRowsLength
== 0)
6048
int currentRowCount = this.
DataGridRowsLength
;
6269
int nExpandableRows =
DataGridRowsLength
;
6289
int rowCount =
DataGridRowsLength
;
6344
int lastRow = Math.Min(row,
DataGridRowsLength
);
6681
if (rowNumber < 0 || rowNumber >
DataGridRowsLength
)
6762
if (numTotallyVisibleRows !=
DataGridRowsLength
&& !needVertScrollbar) {
6791
if (numTotallyVisibleRows !=
DataGridRowsLength
&& !needVertScrollbar) {
6898
if ((this.ReadOnly || !policy.AllowAdd) == (localGridRows[
DataGridRowsLength
-1] is DataGridAddNewRow)) {
6899
int newDataGridRowsLength = (ReadOnly || !policy.AllowAdd) ?
DataGridRowsLength
- 1 :
DataGridRowsLength
+ 1;
6901
for (int i = 0; i < Math.Min(newDataGridRowsLength,
DataGridRowsLength
); i++) {
6974
if (rowNumber < 0 || rowNumber >
DataGridRowsLength
- (policy.AllowAdd ? 2:1)) {
7361
int currentRowCount =
DataGridRowsLength
;
7400
int numRows =
DataGridRowsLength
;
7475
if (listManager != null &&
DataGridRowsLength
> 0 && localGridRows[currentRow].OnKeyPress(keyData)) {
7535
for (int i = 0; i <
DataGridRowsLength
; ++i)
7582
for (int i = 0; i < this.
DataGridRowsLength
; i++) {
7585
Debug.Assert(i ==
DataGridRowsLength
- 1, "the location of addNewRow is " + i.ToString(CultureInfo.InvariantCulture) + " and there are " +
DataGridRowsLength
.ToString(CultureInfo.InvariantCulture) + " rows ");
7739
if (currentRow >=
DataGridRowsLength
- 1 || !gridRows[currentRow+1].Selected) {
7789
CurrentRow = Math.Max(0,
DataGridRowsLength
- (policy.AllowAdd ? 2:1));
7806
CurrentRow = Math.Max(0,
DataGridRowsLength
- (policy.AllowAdd ? 2 : 1));
7818
if (currentRow <
DataGridRowsLength
- (policy.AllowAdd ? 1:0) - 1) {
7836
if (currentRow <
DataGridRowsLength
- (policy.AllowAdd ? 1:0) - 1) {
7908
CurrentRow = Math.Min(
DataGridRowsLength
- (policy.AllowAdd ? 2:1), currentRow + numTotallyVisibleRows);
7929
CurrentRow = Math.Min(
DataGridRowsLength
- (policy.AllowAdd ? 2:1),
8017
if (currentCol == lastColumnMarkedVisible && currentRow !=
DataGridRowsLength
- 1)
8111
CurrentRow = Math.Max(0,
DataGridRowsLength
- (policy.AllowAdd ? 2:1));
8162
for (int i = 0; i <
DataGridRowsLength
; i++)
8165
numSelectedRows =
DataGridRowsLength
- (policy.AllowAdd ? 1 : 0);
8362
if ((this.currentRow == this.
DataGridRowsLength
-1) && ((keyData & Keys.Shift) == 0)) {
8442
if (CurrentRow !=
DataGridRowsLength
- 1)
8494
localGridRows[
DataGridRowsLength
-1] = new DataGridAddNewRow(this, this.myGridTable,
DataGridRowsLength
-1);
8495
SetDataGridRows(localGridRows,
DataGridRowsLength
);
8565
for (int i = 0; i <
DataGridRowsLength
; ++i)
8607
int newFirstRow = Math.Max(0, Math.Min(firstVisibleRow + rows, this.
DataGridRowsLength
-1));
8907
if (row < -1 || row >
DataGridRowsLength
- (policy.AllowAdd ? 2:1)) {
9155
int n = 1 + ColumnCountPrivate + ((DataGrid)Owner).
DataGridRowsLength
;
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1219
if (dg.
DataGridRowsLength
== 0)
winforms\Managed\System\WinForms\DataGridState.cs (1)
90
this.DataGridRowsLength = dataGrid.
DataGridRowsLength
;