|
-
Oct 13th, 2004, 09:27 AM
#1
Thread Starter
Member
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
-
Oct 13th, 2004, 09:56 AM
#2
Thread Starter
Member
I really need help on this.
please someone help me.
Thank you
-
Oct 13th, 2004, 01:08 PM
#3
Thread Starter
Member
can someone help me pls.
My question is above. it seems nobody has an idea on what im talking about.
i hope there is
-
Oct 13th, 2004, 09:48 PM
#4
Fanatic Member
well i think u almost answer ur own question
at ur searchButton_click event
ex :
VB Code:
rs.movefirst
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|