data binding and text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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..
 
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... 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/a_query_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.<
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top