Results 1 to 4 of 4

Thread: Searching in DataGrid

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Quebec
    Posts
    36

    Searching in DataGrid

    Hello all,

    I have a Datagrid and I populated it with data using Recordset.

    What I am trying to do is to search a data from a recordset, which is displayed already in Datagrid.

    for ex. I have a search button and a textbox. In a textbox I input a data to search for, then by pressing Search button.

    Once the data is found it will be highligthed or selected in DataGrid.

    I have the code for selecting a data from Datagrid and select the whole row. I want the opposite code. Meaning not clicking on Datagrid I can select by using the search button.

    I hope describe my problem clearly.

    Can someone help me pls. Thank you

    Rost

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Quebec
    Posts
    36
    I really need help on this.

    please someone help me.

    Thank you

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Quebec
    Posts
    36
    can someone help me pls.

    My question is above. it seems nobody has an idea on what im talking about.

    i hope there is

  4. #4
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818
    well i think u almost answer ur own question

    at ur searchButton_click event

    ex :
    VB Code:
    1. rs.movefirst
    2. rs.find "fieldname = '" & textbox1.text & "'"
    it'll make the arrow sign at datagrid to select the right record(if it found of course )
    hope it works..
    sorry if this isn't what u mean

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