Working in VS2010 / C# – I have a form that shows data by using tableadaptor (ie from the drag & drop)
One of the fields in my database is booking.status. I have NOT displayed that field on the form.
The form takes variable bookingId and uses it to load a single record using the FillBy method.
The code for the save button is
this.bookingBindingSource.EndEdit();
this.bookingTableAdapter.Update(this.quick_quoteDataSet.booking);
Before this code executes, I would like to set the value of the status field to ‘P’.
I can use this.bookingTableAdapter.Update() – but it seems I will have to read all of the values from the form and pass them into the update command along with the new value for the status field.
Is there a way I can simply amend the value of that one field for the current record?
Use Stored Procedure