YvonneTsang
Programmer
I am working on a simple inventory problem and I am having some problems with the update portion.
My query consists of an Inner Join between 2 tables( item details and the inventory). There is a relationship between the 2 tables
The information loads into the DataGrid properly and I can edit it fine. I am just not able to save the information back to the database correctly.
it is loaded with
this.figure_Details_QueryTableAdapter.Fill(this.hDataSet.Figure_Details_Query);
in the page load and later tries to save with
private void Save()
{
try
{
this.figure_Details_QueryTableAdapter.Adapter.Update(this.hDataSet.Figure_Details_Query);
MessageBox.Show("Save worked");
}
catch (System.Exception ex)
{
MessageBox.Show("Save didnt work: " + ex.Message.ToString());
}
}
I want it to just update the inventory part. The item details are read only.
My query consists of an Inner Join between 2 tables( item details and the inventory). There is a relationship between the 2 tables
The information loads into the DataGrid properly and I can edit it fine. I am just not able to save the information back to the database correctly.
it is loaded with
this.figure_Details_QueryTableAdapter.Fill(this.hDataSet.Figure_Details_Query);
in the page load and later tries to save with
private void Save()
{
try
{
this.figure_Details_QueryTableAdapter.Adapter.Update(this.hDataSet.Figure_Details_Query);
MessageBox.Show("Save worked");
}
catch (System.Exception ex)
{
MessageBox.Show("Save didnt work: " + ex.Message.ToString());
}
}
I want it to just update the inventory part. The item details are read only.