PC Review


Reply
Thread Tools Rate Thread

data binding and text box

 
 
=?Utf-8?B?YWx5c3Nh?=
Guest
Posts: n/a
 
      15th Mar 2005
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..
 
Reply With Quote
 
 
 
 
glenn
Guest
Posts: n/a
 
      15th Mar 2005
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" <(E-Mail Removed)> wrote in message
news:5FC5852F-8A29-46DE-92F4-(E-Mail Removed)...
> 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..



 
Reply With Quote
 
Jeff Louie
Guest
Posts: n/a
 
      16th Mar 2005
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data binding a text box si_owen Microsoft VB .NET 1 13th Oct 2006 03:50 PM
data binding: using text and tags. oracle Microsoft C# .NET 0 14th Dec 2005 08:44 PM
Data binding a date to a text box Paul Hester Microsoft ADO .NET 1 25th Jul 2005 08:06 PM
Binding data to a text box =?Utf-8?B?Y2hyaXM=?= Microsoft ASP .NET 1 21st Jul 2004 01:46 PM
Text Box Data Binding Not Always Updating Barry Gast Microsoft VB .NET 1 21st Oct 2003 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.