Bind data into textbox
-
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...
-
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...
Does this data need to be editable, or is it just displaying information based on the (i'm assuming unique) code?
-
Does this data need to be editable, or is it just displaying information based on the (i'm assuming unique) code?
-
its just displaying information on testbox2 when a code number on textbox1 has entered. testbox1 _____ |6077| |____| textbox2 ________ |CLOTHES| |_______|
so much of happy ending...
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.