Gets a value that indicates whether the primary key of any row in the collection contains the specified value.
true if the collection contains a System.Data.DataRow with the specified primary key value; otherwise, false.
To use the DataRowCollection.Contains(object) method, the System.Data.DataTable object to which the System.Data.DataRowCollection object belongs to must have at least one column designated as a primary key column. See the DataTable.PrimaryKey property for more information about how to create a primary key column.
As soon as you have determined that a row contains the specified value, you can use the DataRowCollection.Find(object) method to return the specific System.Data.DataRow object that has the value.