Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Bind data into textbox

Bind data into textbox

Scheduled Pinned Locked Moved C#
databasewpfwcfhelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zafax_
    wrote on last edited by
    #1

    hi guys, im trying to bind data into a texbox1 and textbox2. thats when i enter an item code number and quantity into textbox1 and press enter key, following codes details will appear on to textbox2. here the sample seen in text box2 ====================== |code no : 6089 | |name : DVD CD | |quantity: 2 | |price : $12.50 | ======================= i have created database in SQL Can anyone help me to go through this binding data into textbox1 and textbox2? thanks in great!!

    so much of happy ending...

    D 1 Reply Last reply
    0
    • Z zafax_

      hi guys, im trying to bind data into a texbox1 and textbox2. thats when i enter an item code number and quantity into textbox1 and press enter key, following codes details will appear on to textbox2. here the sample seen in text box2 ====================== |code no : 6089 | |name : DVD CD | |quantity: 2 | |price : $12.50 | ======================= i have created database in SQL Can anyone help me to go through this binding data into textbox1 and textbox2? thanks in great!!

      so much of happy ending...

      D Offline
      D Offline
      Drew McGhie
      wrote on last edited by
      #2

      Does this data need to be editable, or is it just displaying information based on the (i'm assuming unique) code?

      Z 1 Reply Last reply
      0
      • D Drew McGhie

        Does this data need to be editable, or is it just displaying information based on the (i'm assuming unique) code?

        Z Offline
        Z Offline
        zafax_
        wrote on last edited by
        #3

        its just displaying information on testbox2 when a code number on textbox1 has entered. testbox1 _____ |6077| |____| textbox2 ________ |CLOTHES| |_______|

        so much of happy ending...

        D 1 Reply Last reply
        0
        • Z zafax_

          its just displaying information on testbox2 when a code number on textbox1 has entered. testbox1 _____ |6077| |____| textbox2 ________ |CLOTHES| |_______|

          so much of happy ending...

          D Offline
          D Offline
          Drew McGhie
          wrote on last edited by
          #4

          2 ways to do it. You can either pull the entire datatable worth of information and databind the table using a bindingsource(look up the bindingsource control), or you could make a call to the db every time you enter something and get that information. Conceptually its pretty easy, you have a db full of information, and something you're using as the key to look stuff up. Hopefully you'll be able to figure out how to apply the SQL queries/form interaction.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups