- I am having a gridview with an object datasource binded in the markup(aspx page). When page loads it directly works fine with all sorting and paging properties.
- However, i need to filter display on gridview so i have to change the datasource of the gridview on the code behind.
- It works fine.. i mean the filtering and displaying is good but paging and sorting doesnt work. Did you have a problem something like this?
dont change the gridviews datasource, check the object datasources properties instead, you can change its select query programatically.