changed bound textbox.text = "" programatically bindingsource.endedit() does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    changed bound textbox.text = "" programatically bindingsource.endedit() does not work

    my textbox displays "hello"

    i change the value of textbox through code like this:

    textbox.text = ""

    then i do:

    bindingsource.e ndedit()
    tableadapter.up date(dataset.da tatable)

    when i run the program, my textbox still displays "hello"

    help me...
  • nev
    Contributor
    • Oct 2007
    • 251

    #2
    i tried this before endedit() but does not work:

    textBox.DataBin dings("Text").B indingManagerBa se.EndCurrentEd it()

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      I think that you are running into a postback issue, that is why it still reads hello. HTH.

      Comment

      • nev
        Contributor
        • Oct 2007
        • 251

        #4
        Originally posted by kenobewan
        I think that you are running into a postback issue, that is why it still reads hello. HTH.
        thanks for the input.

        Comment

        Working...