159 references to Rows
System.Data.Common (138)
System\Data\Common\AdapterUtil.Common.cs (1)
713DataRowCollection rowCollection = dataTable.Rows;
System\Data\Common\DBCommandBuilder.cs (4)
592if (dataTable.Rows.Count == 1) 594_parameterNamePattern = dataTable.Rows[0][DbMetaDataColumnNames.ParameterNamePattern] as string; 595_parameterMarkerFormat = dataTable.Rows[0][DbMetaDataColumnNames.ParameterMarkerFormat] as string; 597object oParameterNameMaxLength = dataTable.Rows[0][DbMetaDataColumnNames.ParameterNameMaxLength];
System\Data\Common\DbDataReaderExtensions.cs (1)
78foreach (DataRow row in schemaTable.Rows)
System\Data\Common\DBSchemaRow.cs (2)
24int count = dataTable.Rows.Count; 27dataTable.Rows[i][sortindex] = i;
System\Data\DataColumn.cs (4)
1374if ((0 <= _maxLength) && (null != Table) && (0 < Table.Rows.Count)) 1377foreach (DataRow dr in Table.Rows) 1422foreach (DataRow dr in _table!.Rows) 1683foreach (DataRow dr in Table!.Rows)
System\Data\DataColumnCollection.cs (2)
432for (int i = 0; i < _table.Rows.Count; i++) 434_table.Rows[i].ClearError(column);
System\Data\DataRelation.cs (2)
512foreach (DataRow row in ChildTable.Rows) 525foreach (DataRow row in ChildTable.Rows)
System\Data\DataRow.cs (1)
211int count = _table.Rows.Count, i = 0;
System\Data\DataSet.cs (13)
1250foreach (DataRow row in table.Rows) 1278bytes += table.Rows.Count * rowBytes; 1331bitMatrix[i] = new TableChanges(Tables[i].Rows.Count); 1352Debug.Assert(bitMatrix[i].HasChanges <= table.Rows.Count, "to many changes"); 1359DataTable.CopyRow(destTable, table.Rows[j]); 1383DataRowCollection rows = Tables[tableIndex].Rows; 1421int relatedRowIndex = relatedRow.Table.Rows.IndexOf(relatedRow); 1543for (int j = 0; j < table.Rows.Count; j++) 1545DataRow row = table.Rows[j]; 2399if (table.Rows.Count > 0) 2431t.Rows._nullInList = 0; 2492if (t.Rows._nullInList > 0) 2508foreach (DataRow r in t.Rows)
System\Data\DataTable.cs (49)
688int rowCount = Rows.Count; 697DataRow row = Rows[i]; 752int recordsPerRow = Rows[i].CopyValuesIntoStore(storeList, nullbitList, recordsConsumed); 845Rows.ArrayAdd(row); 894Debug.Assert(Rows.Count > rowIndex); 898DataRow row = Rows[rowIndex]; 925Debug.Assert(Rows.Count > rowIndex); 929DataRow row = Rows[rowIndex]; 1383for (int i = 0; i < Rows.Count; i++) 1385if (Rows[i].HasErrors) 2291DataRow[] oldRows = new DataRow[Rows.Count]; 2292Rows.CopyTo(oldRows, 0); 2521foreach (DataRow row in Rows) 2841bool shouldFireClearEvents = (Rows.Count != 0); // if Rows is already empty, this is noop 2862foreach (DataRow row in Rows) 2870Rows.ArrayClear(); 3095for (int i = 0; i < Rows.Count; i++) 3097row = Rows[i]; 3104if (dtChanges.Rows.Count == 0) 3128for (int i = 0; i < Rows.Count; i++) 3130row = Rows[i]; 3137if (dtChanges.Rows.Count == 0) 3157for (int i = 0; i < Rows.Count; i++) 3159DataRow row = Rows[i]; 3340Rows.ArrayAdd(row); 3970DataRow[] oldRows = new DataRow[Rows.Count]; 3971Rows.CopyTo(oldRows, 0); 4019Rows.ArrayRemove(row); 4337Rows.ArrayAdd(row); 4341Rows.ArrayInsert(row, position); 4607_initialLoad = (Rows.Count == 0); 4811Rows.Add(row2); 4815return Rows.Add(values); 6276if (Rows.Count == 0) 6288newDt.Rows._nullInList = 0; 6340if (newDt.Rows._nullInList > 0) 6358foreach (DataRow r in tableList[i].Rows) 6910foreach (DataRow row in Rows) 6957for (int j = 0; j < Rows.Count; j++) 6959DataRow tableRow = Rows[j]; 6966for (int j = 0; j < Rows.Count; j++) 6968DataRow tableRow = Rows[j]; 6979for (int j = 0; j < Rows.Count; j++) 6981DataRow tableRow = Rows[j]; 7019int count = column._table.Rows.Count; 7026DataRow row = column._table.Rows[j]; 7046DataRow row = column._table.Rows[j]; 7108for (int j = 0; j < Rows.Count; j++) 7111DataRow dr = Rows[j];
System\Data\DataTableReader.cs (13)
106_hasRows = (_currentDataTable.Rows.Count > 0); 161_hasRows = (_currentDataTable.Rows.Count > 0); 181if (_rowCounter >= _currentDataTable.Rows.Count - 1) 190_currentDataRow = _currentDataTable.Rows[_rowCounter]; 195if (_rowCounter == _currentDataTable.Rows.Count) 202_currentDataRow = _currentDataTable.Rows[_rowCounter]; 844tempSchemaTable.Rows.Add(dr); 849tempSchemaTable.Rows[key.Ordinal][IsKeyColumn] = true; 900if (0 > _rowCounter || _currentDataTable.Rows.Count <= _rowCounter) 914if (0 > rowPosition || _currentDataTable.Rows.Count <= rowPosition) 952if (_currentDataRow == _currentDataTable.Rows[_rowCounter + 1]) 968if (_currentDataRow == _currentDataTable.Rows[_rowCounter - 1]) 981_currentDataRow = _currentDataTable.Rows[_rowCounter];
System\Data\DataView.cs (2)
795_table!.Rows.Add(newRow); 1727dt.Rows.Add(o);
System\Data\EnumerableRowCollection.cs (1)
93_enumerableRows = table.Rows.Cast<TRow>();
System\Data\Filter\AggregateNode.cs (2)
175rows = new DataRow[_childTable.Rows.Count]; 176_childTable.Rows.CopyTo(rows, 0);
System\Data\ForeignKeyConstraint.cs (1)
499if (Table.DataSet.EnforceConstraints && Table.Rows.Count > 0)
System\Data\Merger.cs (4)
195int rowsCount = src.Rows.Count; 196bool wasEmpty = dst.Rows.Count == 0; 214foreach (DataRow sourceRow in src.Rows) 295if (0 < dst!.Rows.Count && ndxSearch != null)
System\Data\ProviderBase\SchemaMapping.cs (1)
780bool addPrimaryKeys = (((0 == _dataTable.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 == _dataTable.Rows.Count)))
System\Data\RecordManager.cs (1)
169_freeRecordList.Capacity = _freeRecordList.Count + _table.Rows.Count;
System\Data\Selection.cs (5)
331return _table.Rows.IndexOf(row1).CompareTo(_table.Rows.IndexOf(row2)); 728foreach (DataRow b in _table.Rows) 796append = (_table.Rows.IndexOf(row) + 1 == _table.Rows.Count);
System\Data\TypedTableBase.cs (1)
47return Rows.Cast<T>().GetEnumerator();
System\Data\TypedTableBaseExtensions.cs (2)
97if ((index >= 0) && (index < source.Rows.Count)) 99return (TRow)source.Rows[index];
System\Data\XmlDataLoader.cs (5)
112r.Table.Rows.Add(r); 346topTable.Rows.Add(topRow); 835row = table.Rows.AddWithColumnEvents(foundColumns); // Create, populate and add row 1071table.Rows.DiffInsertAt(row, rowOrder); // insert data to specific location 1102row = table.Rows.AddWithColumnEvents(foundColumns); // Create, populate and add row
System\Data\XMLDiffLoader.cs (2)
114tableBefore.Rows.DiffInsertAt(row, pos); 167tableBefore.Rows.DiffInsertAt(row, pos);
System\Data\xmlsaver.cs (10)
2313rows += ((DataTable)tables[i]!).Rows.Count; 2319DataRowCollection rc = dt.Rows; 2330if (((DataTable)_tables[i]!).Rows.Count > 0) 2405int rowCount = table.Rows.Count; 2411GenerateRow(table.Rows[rowNum]); 2417int rowCount = table.Rows.Count; 2427DataRow row = table.Rows[rowNum]; 2807foreach (DataRow row in tempTable.Rows) 2843if (_ds.TopLevelTables()[0].Rows.Count == 1) 2885foreach (DataRow row in ((DataTable)_dTables[i]!).Rows)
System\Xml\XmlDataDocument.cs (9)
136r.Table.Rows.Add(r); 176r.Table.Rows.Add(r); 875for (i = 0; i < row.Table.Rows.Count; i++) 876if (row == row.Table.Rows[i]) 881for (i = pos + 1; i < row.Table.Rows.Count; i++) 883refRow = row.Table.Rows[i]; 888if (i < row.Table.Rows.Count) 1262foreach (DataRow r in t.Rows) 2803row.Table.Rows.Add(row);
System.Data.Odbc (21)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (8)
75foreach (DataRow row in sourceTable.Rows) 84destinationTable.Rows.Add(newRow); 172foreach (DataRow row in schemaTable.Rows) 180resultTable.Rows.Add(values); 250foreach (DataRow row in metaDataCollectionsTable.Rows) 324if (dataSourceInfoTable.Rows.Count != 1) 329DataRow dataSourceInfoRow = dataSourceInfoTable.Rows[0]; 367foreach (DataRow restriction in restrictionsTable!.Rows)
System\Data\Odbc\OdbcDataReader.cs (1)
2299schematable.Rows.Add(row);
System\Data\Odbc\OdbcMetaDataFactory.cs (12)
84foreach (DataRow collection in metaDataCollectionsTable.Rows) 111foreach (DataRow restriction in restrictionsTable.Rows) 177resultTable.Rows.Add(values); 196object[] getTypeInfoValues = new object[schemaTable.Rows.Count]; 424dataTypesTable.Rows.Add(dataTypesRow); 446resultTable.Rows.Add(values); 469resultTable.Rows.Add(values); 494resultTable.Rows.Add(values); 578if (dataSourceInformationTable.Rows.Count != 1) 582DataRow dataSourceInformation = dataSourceInformationTable.Rows[0]; 995reservedWordsTable.Rows.Add(row); 1069foreach (DataRow row in schemaTable.Rows)