DataTable.DefaultView.Find doesn't
- From: TLWood <volvo340@xxxxxxxxxxxxxxxx>
- Date: Fri, 22 Apr 2005 09:34:01 -0700
Hi
After creating a NewRow and Adding it to a DataTable, it receives it's
autoincrement ID of -1.
If I try to find it by DataTable.DefaultView.Find(-1), it returns 0, which
is incorrect since it is actually at the end of the table (over 1000 records)
and is verified by
DataTable.Rows(DataTable.Rows.Count-1).Item("ID") returns -1
Any ideas as to why this is not working?
--
Many Thanks
Terry
.
- Follow-Ups:
- RE: DataTable.DefaultView.Find doesn't
- From: Kevin Yu [MSFT]
- RE: DataTable.DefaultView.Find doesn't
- Prev by Date: Re: DataSet.GetChanges() returns tables that weren't changed
- Next by Date: Sort-of parse SQL
- Previous by thread: Bulk Insert type mismatch
- Next by thread: RE: DataTable.DefaultView.Find doesn't
- Index(es):
Relevant Pages
|