Ok, so I posted a question the other day and thought of a much easier way to ask it.
If I query a set of records and fill a datatable
Lets say
SELECT * from CUSTOMERS
Now I fill my datatable..
I am updating information against an data file and want to UPDATE anything that is existing with new information.
So I use the find method of the datatable because I have the primary key info..
It looks like I have to set it equal to a datarow. and this is where i get lost..
How do i UPDATE the info and not add a new row?
What is happening is that when i update my database, its ADDING new rows instead of updating the rows..
argh.
If I query a set of records and fill a datatable
Lets say
SELECT * from CUSTOMERS
Now I fill my datatable..
I am updating information against an data file and want to UPDATE anything that is existing with new information.
So I use the find method of the datatable because I have the primary key info..
It looks like I have to set it equal to a datarow. and this is where i get lost..
How do i UPDATE the info and not add a new row?
What is happening is that when i update my database, its ADDING new rows instead of updating the rows..
argh.