|
-
Dec 30th, 2011, 02:51 PM
#1
Thread Starter
New Member
Search form in VB.Net
I am creating a small application using vb.net 2008 and sql server having 10 forms.I want to create a common search form .When i click in the SearchToolStripButton in all forms the 'Search' form shoudld be loaded with the data from the header table into a grid.I complete upto that.
How to write code for the following
1)When i double click in one row in the grid of search window i want to return those data to the corresponding forms and i want to edit there.
AND
After i select one row in grid in the search form and click OK button i want to return those data to the corresponding forms and display there.
It is very urget
Kindly do the needful.
-
Dec 30th, 2011, 03:44 PM
#2
Re: Search form in VB.Net
Hi ajkva!
Welcome to the forums. I'm glad that you posted a thread, but there has been quite a few threads all ready posted on this. In the upper right hand corner of the web page you will see search, just type in key words like "Datagridview Search" and a few things will pop up. Or you can click on the best tool for anything vb.net in my signature. Here is something that really helped me out. Some thing you need to do is:
Bind the database to your datagridview. You do that by dragging your datasource to your form(Simple way)
Then double click your "search button" to generate a click event for that button
Finally use the bindingsource.filter method to filter key words
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|