Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WebGrid Search
posted

I need to be able to search a sql table on one of three fields.  and display the contents in one Grid.  I have been looking around to see if this has already been done but haven't found anything.

I have a RadioList with the three items the user could search against.  How would I change the controlid and Parameters in code?

  • 10
    posted

    I have the same problem and until I find a true answer I've added three web grids and bind them to three separate sqldatasource with each specifying the criteria.  Upon button click, I test which criteria and hide the datagrids not being used.  Sloppy but works for me.