Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:09:45+00:00 2026-06-15T22:09:45+00:00

Working in VS2010 / C# – I have a form that shows data by

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:09:47+00:00Added an answer on June 15, 2026 at 10:09 pm

    Use Stored Procedure

    USE [Assets]
    GO
    /****** Object:  StoredProcedure [dbo].[UpdateAssDispRecord]    Script Date: 12/15/2012 08:00:16 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    ALTER PROCEDURE [dbo].[UpdateAssDispRecord]
    
        @iDispID int,
        @nDispno decimal,
        @cKeygroup nchar(14),
        @iCodeID int,
        @dDate date,
        @nSale decimal,
        @nCumdep decimal,
        @nBookvalue decimal,
        @cRemarks nvarchar(50)
    
    AS
    BEGIN
        SET NOCOUNT ON;
                UPDATE ass_Disp
                SET 
                    nDispno=@nDispno,
                    cKeygroup=@cKeygroup,
                    iCodeID=@iCodeID,
                    dDate=@dDate,
                    nSale=@nSale,
                    nCumdep=@nCumdep,
                    nBookvalue=@nBookvalue,
                    cRemarks=@cRemarks
                WHERE
                    iDispID = @iDispID  
    END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with legacy code in VS2010 and moved many data structures from using
I am working on a website in VS2010 and I have a datatable that
I am using VS2010, working on a WinForms application that uses the ReportViewer control
I'm using VS2010. The projects that I'm working on use different source control providers,
I have VS2010 and I'm working on a windows form application. So, I have
VS2010 C# .Net 4.1 I am working on a form that the user must
I'm working on Add to Calendar feature from my Sharepoint webpart (created using VS2010).
I'm working on a VS2010 editor extension using MEF. Now I wish to hide
I am working on a webpage in C# on VS2010. I have a gridview
i'm working in a c# windows application with vs2010 and a local database.In one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.