Results 1 to 2 of 2

Thread: textbox binding?

  1. #1

    Thread Starter
    Lively Member markmyb's Avatar
    Join Date
    Nov 2001
    Location
    Alberton - South Africa
    Posts
    108

    textbox binding?

    ok, i've managed to get a textbox to accept a value from a dataset, but how do you change the dataset value according to what was entered in the text box?

    I used this code to bind the textbox...
    txtProject.DataBindings.Add(New Binding("text", oDataSet, "Projects.ProjectId"))
    Confusios say "Man who run in front of car get tired."

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    By using DataBinding then it will automatically sync what is in the textbox with what is in the dataset. You just have to sync those changes if any to the database, but that can be done at any time not just when the changes occur.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width