DataTable.DefaultView.Find doesn't



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
.



Relevant Pages

  • =?Utf-8?Q?Re:_Autoincrement_=22r=C3=BCckg=C3=A4ngig=22_m?= =?Utf-8?Q?achen?=
    ... > Datenzeile zu einer Tabelle (Autoincrement) mit NewRow wird automatisch ... > NewRow wieder den selben Wert zu bekommen? ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • Re: @@IDENTITY for Access -- Is it thread safe?
    ... > Is @@IDENTITY thread safe in that it returns the autoincrement value ... Tim F ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Unique Time Stamp
    ... I thought about combining the timestamp with an ... autoincrement number but can't seem to get the end result desired. ... you can give me a simple example I would be very grateful. ... Prev by Date: ...
    (microsoft.public.access.formscoding)