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