VB9 and LINQ to SQL: Need to programmatically update the value in a bound textbox

Answered VB9 and LINQ to SQL: Need to programmatically update the value in a bound textbox

  • Thursday, January 31, 2008 5:16 PM
     
     

    I’m working in VS2008 using LINQ-to-SQL and have bound fields to a windows form.  I can update the field values manually, navigate to another record, navigate back to the record and the field value change sticks.  However when I update a field value programmatically (i.e. I change the value in Textbox1.Text for example). The value change doesn’t stick when I navigate away to and come back to that record. 

     

    I have a field that I need to calculate and populate programatically but that same field can be updated if the user wants to go with a different amount value.

     

    Now in VS 2003 I used to have to update the value in the underlying table that was bound to the field.  But using LINQ-to-SQL, I don’t think I have access to table adapters and datasets like with ADO .Net. 

     

    How can I update a bound field’s value programmatically in the Linq-to-SQL environment and also update the underlying bound value too?

     

    Thank you in advance for your help.

     

    Sincerely,

    Paul.

     

All Replies