Results 1 to 2 of 2

Thread: Search form in VB.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Thumbs up 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.

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,382

    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
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width