183 references to Rows
Accessibility_Core_App (10)
DataBindingExample.cs (9)
73if (dataSet.Tables[0].Rows.Count > 0) 75for (int i = 0; i < dataSet.Tables[0].Rows.Count; i++) 79Text = dataSet.Tables[0].Rows[i]["StuName"].ToString() 91int row_Count = dataSet.Tables[0].Rows.Count; 102string itemName = dataSet.Tables[0].Rows[i][0].ToString(); 108item.SubItems.Add(dataSet.Tables[0].Rows[i][j].ToString()); 127stuTable.Rows.Add(stuRow); 133stuTable.Rows.Add(stuRow); 139stuTable.Rows.Add(stuRow);
DataControls.cs (1)
28dataTable.Rows.Add(dataRow);
Microsoft.Data.Analysis (1)
DataFrame.IO.cs (1)
171table.Rows.Add(items);
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1251var resVals = table.Rows.Cast<DataRow>().Select(row => row.ItemArray).ToArray();
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)
1375if ((0 <= _maxLength) && (null != Table) && (0 < Table.Rows.Count)) 1378foreach (DataRow dr in Table.Rows) 1423foreach (DataRow dr in _table!.Rows) 1684foreach (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)
1260foreach (DataRow row in table.Rows) 1288bytes += table.Rows.Count * rowBytes; 1341bitMatrix[i] = new TableChanges(Tables[i].Rows.Count); 1362Debug.Assert(bitMatrix[i].HasChanges <= table.Rows.Count, "to many changes"); 1369DataTable.CopyRow(destTable, table.Rows[j]); 1393DataRowCollection rows = Tables[tableIndex].Rows; 1431int relatedRowIndex = relatedRow.Table.Rows.IndexOf(relatedRow); 1557for (int j = 0; j < table.Rows.Count; j++) 1559DataRow row = table.Rows[j]; 2441if (table.Rows.Count > 0) 2474t.Rows._nullInList = 0; 2535if (t.Rows._nullInList > 0) 2551foreach (DataRow r in t.Rows)
System\Data\DataTable.cs (49)
693int rowCount = Rows.Count; 702DataRow row = Rows[i]; 757int recordsPerRow = Rows[i].CopyValuesIntoStore(storeList, nullbitList, recordsConsumed); 850Rows.ArrayAdd(row); 899Debug.Assert(Rows.Count > rowIndex); 903DataRow row = Rows[rowIndex]; 930Debug.Assert(Rows.Count > rowIndex); 934DataRow row = Rows[rowIndex]; 1388for (int i = 0; i < Rows.Count; i++) 1390if (Rows[i].HasErrors) 2296DataRow[] oldRows = new DataRow[Rows.Count]; 2297Rows.CopyTo(oldRows, 0); 2526foreach (DataRow row in Rows) 2846bool shouldFireClearEvents = (Rows.Count != 0); // if Rows is already empty, this is noop 2867foreach (DataRow row in Rows) 2875Rows.ArrayClear(); 3100for (int i = 0; i < Rows.Count; i++) 3102row = Rows[i]; 3109if (dtChanges.Rows.Count == 0) 3133for (int i = 0; i < Rows.Count; i++) 3135row = Rows[i]; 3142if (dtChanges.Rows.Count == 0) 3162for (int i = 0; i < Rows.Count; i++) 3164DataRow row = Rows[i]; 3345Rows.ArrayAdd(row); 3975DataRow[] oldRows = new DataRow[Rows.Count]; 3976Rows.CopyTo(oldRows, 0); 4024Rows.ArrayRemove(row); 4342Rows.ArrayAdd(row); 4346Rows.ArrayInsert(row, position); 4612_initialLoad = (Rows.Count == 0); 4816Rows.Add(row2); 4820return Rows.Add(values); 6312if (Rows.Count == 0) 6324newDt.Rows._nullInList = 0; 6376if (newDt.Rows._nullInList > 0) 6394foreach (DataRow r in tableList[i].Rows) 6969foreach (DataRow row in Rows) 7016for (int j = 0; j < Rows.Count; j++) 7018DataRow tableRow = Rows[j]; 7025for (int j = 0; j < Rows.Count; j++) 7027DataRow tableRow = Rows[j]; 7038for (int j = 0; j < Rows.Count; j++) 7040DataRow tableRow = Rows[j]; 7078int count = column._table.Rows.Count; 7085DataRow row = column._table.Rows[j]; 7105DataRow row = column._table.Rows[j]; 7167for (int j = 0; j < Rows.Count; j++) 7170DataRow 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)
48return 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); 347topTable.Rows.Add(topRow); 841row = table.Rows.AddWithColumnEvents(foundColumns); // Create, populate and add row 1078table.Rows.DiffInsertAt(row, rowOrder); // insert data to specific location 1109row = table.Rows.AddWithColumnEvents(foundColumns); // Create, populate and add row
System\Data\XMLDiffLoader.cs (2)
117tableBefore.Rows.DiffInsertAt(row, pos); 171tableBefore.Rows.DiffInsertAt(row, pos);
System\Data\xmlsaver.cs (10)
2323rows += ((DataTable)tables[i]!).Rows.Count; 2329DataRowCollection rc = dt.Rows; 2340if (((DataTable)_tables[i]!).Rows.Count > 0) 2418int rowCount = table.Rows.Count; 2424GenerateRow(table.Rows[rowNum]); 2430int rowCount = table.Rows.Count; 2440DataRow row = table.Rows[rowNum]; 2823foreach (DataRow row in tempTable.Rows) 2860if (_ds.TopLevelTables()[0].Rows.Count == 1) 2902foreach (DataRow row in ((DataTable)_dTables[i]!).Rows)
System\Xml\XmlDataDocument.cs (9)
135r.Table.Rows.Add(r); 174r.Table.Rows.Add(r); 854for (i = 0; i < row.Table.Rows.Count; i++) 855if (row == row.Table.Rows[i]) 860for (i = pos + 1; i < row.Table.Rows.Count; i++) 862refRow = row.Table.Rows[i]; 867if (i < row.Table.Rows.Count) 1252foreach (DataRow r in t.Rows) 2758row.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)
System.Windows.Forms.Tests (2)
BindingNavigatorTests.cs (1)
223dt.Rows.Add(dr);
System\Windows\Forms\DataGridViewTests.cs (1)
2881dt.Rows.Add(dr);
System.Windows.Forms.UI.IntegrationTests (2)
DataGridViewTests.cs (2)
24dataTable.Rows.Add(values: "name1"); 52dataTable.Rows.Add(values: cellValue);
UnsupportedTypes (8)
CreateFrameworkTypes.cs (8)
211customerDataTable.Rows.Add(newRow1); 215customerDataTable.Rows[0]["CustName"] = "Customer1"; 216customerDataTable.Rows[1]["CustName"] = "Customer2"; 217customerDataTable.Rows[2]["CustName"] = "Customer3"; 220customerDataTable.Rows[0]["Current"] = true; 221customerDataTable.Rows[1]["Current"] = true; 222customerDataTable.Rows[2]["Current"] = false; 234orderDataTable.Rows.Add(newRow2);