R
RA
Hi
I have the following datarow that I want to add to a datatable.
DataRow newRow = ds.Tables["Customers"].NewRow ();
newRow["ContactFirstName"] = Cache["FirstName"].ToString ();
newRow["ContactLastName"] = Cache["LastName"].ToString ();
ds.Tables["Customers"].Rows.Add (newRow);
After the row has been added I want to get the row column value of
CustomerId (This column is defined in the database as Autoincrement).
How can I get this value? I need this value in order to update the orders
table which has a CustomeId column.
Thanks,
Ron
I have the following datarow that I want to add to a datatable.
DataRow newRow = ds.Tables["Customers"].NewRow ();
newRow["ContactFirstName"] = Cache["FirstName"].ToString ();
newRow["ContactLastName"] = Cache["LastName"].ToString ();
ds.Tables["Customers"].Rows.Add (newRow);
After the row has been added I want to get the row column value of
CustomerId (This column is defined in the database as Autoincrement).
How can I get this value? I need this value in order to update the orders
table which has a CustomeId column.
Thanks,
Ron