Let's say I have a gridview with three columns: First Name, Last Name, ID Number. Here's an example of what I want to do:
I want to display all the records in the gridview to start. There would be a dropdownlist that lets the user select whether to search by first name, last name, or ID number and a text box that lets them type in what they want to search for (and a button to start the search). After searching, the gridview would only display the records that matched the criteria.
The gridview needs to be editable, sortable, and pageable even after searching/filtering. I'm using an SqlDataSource for the time being. I already know the basics of how to create the gridview and make it editable, sortable, and pageable. I have experimented with modifying the SelectCommand of the data source with mixed results. When I edit the SelectCommand and rebind the datasource, attempting to edit a record throws an "Invalid postback or callback argument"
How can I do this? Or if you know a tutorial of this that would be fantastic.
If a post helps me I'll always eventually mark it as an answer. But I frequently don't mark it right away because I feel once a thread is marked as answered, discussion tends to end. And I like to discuss things a bit.