Link to home
Start Free TrialLog in
Avatar of mgmhicks
mgmhicks

asked on

How to move to gridview row to selected search option

I have a gridview that binds to a dataset tables.  My question is I would like to have a search box to go to the searched dataitemkey.  Just wondering what the code would look like it the dataitemkey is wo_number, and they will search for workorder and I want to have that workorder goes to the page that the item is bound to within the gridview.

thanks
Avatar of Kamal Khaleefa
Kamal Khaleefa
Flag of Kuwait image

usually when you type something in the text box
and click search , a code against the DB will be executed and a data set will return and be bounded with the gridview

you may also sort the gridview based on the coloum name
ASKER CERTIFIED SOLUTION
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deanvanrooyen
deanvanrooyen

you could build a textual representation of javascript either json or a hashtable, when the page loads it 'loads' it onto the client browser (Im assuming this sounds like an intranet type site) and this 'object' contains all wo_number's and the details url location, then your text box doesnt do anything server side, it just scans the object for the wo_number and then loads the relevant value which could be a built up url to the wo_number details page etc. This is easier than doing the web service search thing provided you don't have millions of wo_number items... a bit of jquery and autocomplete goodness and you're cooking with gas...
please dont ask for sample code as you'll learn more by doing/searching for it yourself.


good luck

ps if this is a public facing site then please note my solution will need tweaking and you'll seriously need to look into caching.