DotNetDunce
Programmer
I have a dynamically created gridview that when sorted only sorts to descending order. The problem is that the sort is firing twice. I've looked over the forum and google and the only suggestion I've seen is to make sure the the page has not ispostback in page_load. With this in mind I'm sure I'm having the same problem BUT this is a search page. Nothing is loaded onto the screen until the search button is clicked and then the click event is fired which contains a databind command. The sorting event also contains this command. What do I do to stop it from binding twice?
Thanks in advance for your help!
Thanks in advance for your help!