when you type a last name on the textbox then on the datagrid,for example i ype letter "S" then the datagrid will show all the las names that starts with letter "S"


how it is???

Recommended Answers

All 5 Replies

In your sql statement the following -

"SELECT * FROM YourTableNameHere WHERE LastName LIKE 'S%'"

You want to be careful doing this, it can put quite a strain on the database in a multiuser environment causing performance issues.

Order your table by LastName and use a find first to locate the first row that matches rather than requerying the table with each keystroke.

ok the letter "S" is done,,but how about when i click a command button or example it says ok how can it be ransfered in the textboxes,,the information of that particular last name???

Andre provided you with the basic solution, if you are to learn it is necessary for a little bit of thinking and extrapolation by you.

commented: Someone that knows what we are all about! +6

Well said Chris.:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.