I need help regarding following issue. I am dealing with grid view in asp.net. In this grid view data is bound from a datatable. all insertion, updation and deletion is performed in datatable. On save button click i want this datatable to be updated in database table(database table already exist with some data which is edited in datatable, Datatabase tables columns are same as datatable).
I tried following with oracleBulkCopy
Oracle.DataAccess.Client.OracleBulkCopy oracleBulkCpoy = new Oracle.DataAccess.Client.OracleBulkCopy(DM.ConnectionString);
oracleBulkCpoy.DestinationTableName = "RANGE";
oracleBulkCpoy.WriteToServer(dtRange);
Above code only writing all rows in database table. it is not updating existing rows but creating same row aging with same primary key id.
Do I need any stored procedure?
Any other Suggestions or idea of updating datatable into database...
Plz help.. suggestions, opinions are welcome... Thanx in advance