BindingContext - Textbox bug?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • graham

    #1

    BindingContext - Textbox bug?

    Hi all,

    I have a strange one, and being new to .NET, not sure if this is a bug and
    whether there is a work around.

    I have a form with databound textboxes..

    In me general decs...

    Dim bmbLinkMAN As BindingManagerB ase

    In my form load I have..

    bmbLinkMAN = Me.BindingConte xt(dsLinkMAN_cl ient_trans_1, "client_tra ns")

    And my text boxes have the binding data in them..
    e.g. txtpath has he correct databindings..

    When I try to add a row - by performing a bmbLinkMAN.AddN ew()

    I then try to assign a default value to the field by doing

    txtpath.Text = path

    When I hover over the field AND the txtpath.Text code in debug, it does show
    the value. But the textbox at no time shows any contents.
    Is there a databing issue here?

    If anyone knows of this problem/workaaround/what I;m doing wrong.... I'd
    appreciate any help.

    Thanks,
    Graham


  • Cor Ligthert

    #2
    Re: BindingContext - Textbox bug?

    Hi Graham,

    Are you sure this is not the normal repeatly asked question about:

    BindingContext( ds.Tables(0)).E ndCurrentEdit()

    When the data is in the textbox and the focus is still on it, there has not
    been binding yet happen.

    I hope this helps a little bit?

    Cor


    Comment

    • Cor Ligthert

      #3
      Re: BindingContext - Textbox bug?

      Hi Graham,

      Are you sure this is not the normal repeatly asked question about:

      BindingContext( ds.Tables(0)).E ndCurrentEdit()

      When the data is in the textbox and the focus is still on it, there has not
      been binding yet happen.

      I hope this helps a little bit?

      Cor


      Comment

      • graham

        #4
        Re: BindingContext - Textbox bug?

        Yep, that was it Cor. Thanks.

        I did find the solution elsewhere - but I guess this is a common NewB
        question.... now, if only there was a definitive FAQ site...... ;-)

        Thanks again,
        Graham


        "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
        news:uUg3DGiREH A.3944@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Hi Graham,
        >
        > Are you sure this is not the normal repeatly asked question about:
        >
        > BindingContext( ds.Tables(0)).E ndCurrentEdit()
        >
        > When the data is in the textbox and the focus is still on it, there has[/color]
        not[color=blue]
        > been binding yet happen.
        >
        > I hope this helps a little bit?
        >
        > Cor
        >
        >[/color]


        Comment

        • graham

          #5
          Re: BindingContext - Textbox bug?

          Yep, that was it Cor. Thanks.

          I did find the solution elsewhere - but I guess this is a common NewB
          question.... now, if only there was a definitive FAQ site...... ;-)

          Thanks again,
          Graham


          "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
          news:uUg3DGiREH A.3944@TK2MSFTN GP11.phx.gbl...[color=blue]
          > Hi Graham,
          >
          > Are you sure this is not the normal repeatly asked question about:
          >
          > BindingContext( ds.Tables(0)).E ndCurrentEdit()
          >
          > When the data is in the textbox and the focus is still on it, there has[/color]
          not[color=blue]
          > been binding yet happen.
          >
          > I hope this helps a little bit?
          >
          > Cor
          >
          >[/color]


          Comment

          Working...