ensure gridview query is reusable

apply pagination and sorting to a clone of it.