views:

94

answers:

2

I have a filtered gridview in an updatepanel. I want to allow to sort filtered data. How can this be done? When I click to sort a column it reloads the entire gridview.

+1  A: 

Try this:

How Sorting Works in the GridView Control

The GridView control does not perform its own sorting of columns, but rather relies on the data source control to perform sorting on its behalf. ...see rest of article

rick schott
I guess I must be dense, because I'm still having problems.I can sort.I can filter.I cannot sort a filtered GridView without losing the filter.If I try to reapply the filter to the SqlDataSource in the Sorting Event, I get an endless loop.Help!
Axeva
A: 

Without seeing any code, you may want to look in to the Sorting Event.

CAbbott