I know this thread is a little old, but I stumbled across it and it works wonderfully, but I have a little problem I can't seem to work out.
My Gridview has a "Filter" dropdown list associated with it, meaning that the user can select an item from the DDL and the GridView will "Filter", showing only the items relevent to the user's selection (For instance, if "Cars" is selected, only items under a "Cars" category will display).
This is the problem: If the GridView is "filtered", and then a SORT is performed (header clicked), the arrow images show up perfectly, but the GridView reverts back to the original Full List (not the "Filtered" list). Everything was working fine prior to adding this new code for the arrows.
Does anyone have any ideas how I can force the gridview to remain filtered??
Thanks!