How can I get all the primary key values in a Table Adapter .
One by one I can get at the time of the insert with this code:
PegaIdOrc = orcTableAdapter.GetDataByMaxIDOrc().
Rows[0]["Expr1"].ToString();
But when I try to get all the values of a query, it returns me the pre-insertion numbers like this: -1, -2, -3...
I've tried a foreach
with the row count, but the return is always these negative numbers.