event on sql table bound control

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

    #1

    event on sql table bound control

    which event should I use to process and format the display of a column after
    navigating into the row?

    I looked at the event for the data bound text control, I did not see
    anything obvious.

    I am trying to use the string form of a numeric value to set some checkboxes
    so user can see and change the value easily.

    thank you for your time and advice.


  • Cor Ligthert[MVP]

    #2
    Re: event on sql table bound control

    GS,

    Web or window forms, your text looks a little bit like webdevelopment.

    Otherwise, what is a databound text control?

    If it is by instance about a textbox in windows form, then it is just
    databinding it, the binding manager is than handling the rest.

    Cor

    "GS" <gsmsnews.micro soft.comGS@msne ws.Nomail.comsc hreef in bericht
    news:%23nK%239K gQIHA.3556@TK2M SFTNGP03.phx.gb l...
    which event should I use to process and format the display of a column
    after
    navigating into the row?
    >
    I looked at the event for the data bound text control, I did not see
    anything obvious.
    >
    I am trying to use the string form of a numeric value to set some
    checkboxes
    so user can see and change the value easily.
    >
    thank you for your time and advice.
    >
    >

    Comment

    • GS

      #3
      Re: event on sql table bound control

      Thank you.

      sorry, I should clarify that I am talking about window form, could be part
      of datagridview or just some textbox control bound to sql table column via
      binding source.

      I did a quick find for bindingmanager on the entire solution and found
      nothing like that.


      from built-in help, I found BindingManagerB ase and example. Seems to me I
      have to get that form my bound control, say regexOptionsTex tBox:
      Dim mydbm as BindingManagerB ase
      = regexOptionsTex tBox:.DataBindi ngs.BindingMana gerBase.
      Dim myPosnChgd as EventHandler
      and somehow create the event handler for mydbm.PositionC hanged like
      AddHandler mydbm.PositionC hanged, myPosnChgd
      I can then use myPosnChgd to set a bunch of regex Options check boxes like
      IgnoreCase, Multiline, SIngle Line, ECMAScript, ExplicitCapture ....


      Am I on the right track?

      "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
      news:3A2C54CC-D7EF-4DA8-8916-F0704A4A72AA@mi crosoft.com...
      GS,
      >
      Web or window forms, your text looks a little bit like webdevelopment.
      >
      Otherwise, what is a databound text control?
      >
      If it is by instance about a textbox in windows form, then it is just
      databinding it, the binding manager is than handling the rest.
      >
      Cor
      >
      "GS" <gsmsnews.micro soft.comGS@msne ws.Nomail.comsc hreef in bericht
      news:%23nK%239K gQIHA.3556@TK2M SFTNGP03.phx.gb l...
      which event should I use to process and format the display of a column
      after
      navigating into the row?

      I looked at the event for the data bound text control, I did not see
      anything obvious.

      I am trying to use the string form of a numeric value to set some
      checkboxes
      so user can see and change the value easily.

      thank you for your time and advice.
      >

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: event on sql table bound control

        GS,

        This is very easy stuff, to show you a sample from our webpage.



        This parts from the code is in my idea actually about your problem although
        the rest of the code extensions that.
        \\\
        Dim Mybinding As New Binding("Text", ds.Tables(0), "DateField" )
        TextBox1.DataBi ndings.Add(Mybi nding)
        ///

        In words, you bind the property Text from the Textbox to the property
        "DateField" from the DataTable.

        Cor

        Comment

        • GS

          #5
          Re: event on sql table bound control

          ...aha... I think I got the drift from your complete example to connect
          format and parse events to textboxes.


          I will get give it whirl .


          Thank you very much. much appreciated

          "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
          news:362BB62F-C55D-419F-B14C-C9AC722F5EB9@mi crosoft.com...
          GS,
          >
          This is very easy stuff, to show you a sample from our webpage.
          >

          >
          This parts from the code is in my idea actually about your problem
          although
          the rest of the code extensions that.
          \\\
          Dim Mybinding As New Binding("Text", ds.Tables(0), "DateField" )
          TextBox1.DataBi ndings.Add(Mybi nding)
          ///
          >
          In words, you bind the property Text from the Textbox to the property
          "DateField" from the DataTable.
          >
          Cor
          >

          Comment

          Working...