How can I implement custom paging for a GridView bound to an ObjectDataSource without using a stored procedure?
I have a search screen that allows users to apply a number of filters to create a custom search.(Several DropDownList Controls for each one that has selected value other then "All" I need to add a filter to the "where" clause of the SQL statement).
I want to build the SQL query dynamically. Usually I use a store procedure and use ROW_NUMBER() (See here ) But how can I implement paging in c# code level ?
Is there a way to do so 'or is my only option to implement the dynamic SQL inside the stored procedure (See here) ?
Thanks