I have a DataGrid
that has event handlers bound to SortCommand
and PageIndexChanged
. How can I determine if those event handlers are about to be called, say on page_load?
These events will fire just fine after page_load, but I'd like to know at page_load if they are to be fired.