473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

data binding and text box

May i know hot to implement the code when the user enter their customer ID in
a text box and a report based on the customer ID will be shown?
I have done the data binding in the text box....and I don't know how to
write the code so that when the user enter their customer ID, i want to show
the particulars about their customer shown in the data grid.....
thanks for ur help..
Nov 16 '05 #1
2 3303
I'm not sure that I follow what you are saying exactly but why couldn't you
use the on exit event of keypress event of the edit field. ie: they enter
their id and hit enter and you trap the enter key and show what you want to
show...

Sorry if that is not what you're asking for as you english is a little
broken. Not bad, just a little broken...

good luck,

glenn

"alyssa" <al****@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
May i know hot to implement the code when the user enter their customer ID in a text box and a report based on the customer ID will be shown?
I have done the data binding in the text box....and I don't know how to
write the code so that when the user enter their customer ID, i want to show the particulars about their customer shown in the data grid.....
thanks for ur help..

Nov 16 '05 #2
Alyssa... There are many approaches. I conceptually have two modes for
the
_same_ data input form. A data mode and a find mode. I have a function
that
disables and enables features depending on the mode so in find mode a
context menu pops up to help searching. In the data mode the default
textbox context menu pops up. The menu items also change so that in
findmode there is a search menuitem. In the find mode the user enters
data
into the form and selects search. They can then scroll through the rows
that
match the search criteria. Particulars are shown in a related datagrid
that is
bound to the current displayed customer. Look here for screenshots.

http://www.geocities.com/jeff_louie/..._framework.htm

I have sample code on my website that creates a sample master-detail
dataset programmatically, NO DATABASE NEEDED, to test your code logic. I
also have code there that shows two ways to search. 1) Loading all the
data
into memory and filtering on a view or 2) using parameterized SQL
queries to
return a restricted subset of the data. You don't need a fancy framework
to
start. In fact, you should probably do it by hand first to learn.

Regards,
Jeff
I don't know how to write the code so that when the user enter their

customer ID, i want to show the particulars about their customer shown
in the
data grid.....thanks for ur help.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
4
by: Alan Silver | last post by:
Hello, I'm trying to use an ArrayList to do data binding, but am getting an error I don't understand. I posted this in another thread, but that was all confused with various other problems,...
1
by: msmcg | last post by:
I need to format the data in some textboxes using the Binding method with custom Currency and ShortDate format and parse handlers. Here is the code that I am using. I call it on the form load...
19
by: Simon Verona | last post by:
I'm not sure if I'm going down the correct route... I have a class which exposes a number of properties of an object (in this case the object represents a customer). Can I then use this...
2
by: Matthias | last post by:
Hi Team this may be a newbie question. I have searched the discussions before posting: I'd like to re-use a form instance to edit record details. My data binding (a DataTable bound to...
0
by: mjsterz | last post by:
I've been working with VB .NET for less than a year and this is the first time I've posted on one of these groups, so let me apologize beforehand if I'm being unclear, not posting my issue...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
3
by: Max | last post by:
Hello, I made a windows form with a combo box and 4 text boxes. All 5 objects should get their data from a data set which is populated in the form load method. The combo box has item ids. When...
5
by: raajakumars | last post by:
urgent!!!!!!! kindly please anyone help me....... actualy i am newbe to vb.net i need data to be inserted in to my table like this... sitenm cdate wrknm nowrk totwg tamiz palace...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.