Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

Find as you type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
benliu - 08 Nov 2006 18:14 GMT
I saw in an application the ability to have a user type a part of a
name in a textbox, and as they type, a datagridview shows a list of all
customers whose name contains what is typed in the textbox.  This is
all done in real-time without having to require the user to press a
search button.

How would i replicate such functionality?  I assume that it's querying
a database as the user types, and requerying each time they type/delete
a character in the textbox?  Or it could be that the datasource is an
object collection that it's querying from?

Any ideas?  Thanks!
James Daughtry - 08 Nov 2006 21:45 GMT
> I saw in an application the ability to have a user type a part of a
> name in a textbox, and as they type, a datagridview shows a list of all
[quoted text clipped - 8 lines]
>
> Any ideas?  Thanks!

I'd say that it's probably using the TextChanged event on the TextBox
and filtering the binding source for the DataGrid with each change.
Requerying the database with each keystroke could be too performance
intensive depending on how it's done.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.