[ Team LiB ] Previous Section Next Section

DataRowCollection serializable

System.Data (system.data.dll) class

This collection contains DataRow objects. It's accessed through the DataTable.Rows property and contains the data for a table. You can use the Find( ) method and Contains( ) method to locate records. Both methods accept a column value and search for it in the primary key field. If a matching row is found, the Contains( ) method returns true , and the Find( ) method returns the DataRow object.

public class DataRowCollection : InternalDataCollectionBase {
// Public Instance Properties
   public DataRow this[int index]{get; } 
// Protected Instance Properties
   protected override ArrayList List{get; }           // overrides InternalDataCollectionBase
// Public Instance Methods
   public virtual DataRow Add( object[ ] values);  
   public void Add( DataRow row);  
   public void Clear(  );  
   public bool Contains( object key);  
   public bool Contains( object[ ] keys);  
   public DataRow Find( object key);  
   public DataRow Find( object[ ] keys);  
   public void InsertAt( DataRow row, int pos);  
   public void Remove( DataRow row);  
   public void RemoveAt( int index);  
}

Hierarchy

System.Object figs/U2192.gif InternalDataCollectionBase(System.Collections.ICollection, System.Collections.IEnumerable) figs/U2192.gif DataRowCollection

Returned By

DataTable.Rows

    [ Team LiB ] Previous Section Next Section