TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Udi Goldstein
NA
22
63.6k
Dynamically changing datagridview
Aug 6 2010 12:00 PM
Hi, I have this problem with DataGridView:
Let's say I have a database with two fields: Name and Code, the Name consists words that the starts with the letter "A" and the code represents a unique code for the word. For example: Apple is 1, Airplane is 2 and so on.
I want to display in Datagrid the words and their relative code, but the catch (for me that is), that I want it to dynamically change using "textbox_textchange", for example: If I type "Al" I want only words that start with "Al" to be displayed, if I type "Alr" I want only words that start with "Arg" to be displayed. I got the code for the database, textchange and dataset, but I don't know how to control the datagridview to do it. I want it to narrow the list automatically as I type more letter (like a filter).
Thanks in advance,
Udi
Reply
Answers (
1
)
C# Inheritance and typeof - .Net 2.0
Find out the encoding in an xml file using C#