Hi. I have a Gridview, which is bound to an IList. I'd like to have paging " the safer way" (only fetching the Items I Need), so I created a metod on my repository like this
public Ilist<Item> GetItems(int from, int number){ ... }
The thing is that wheen I bind it, it only shows me the n items, and doesn't show the paging controls. I tried to find the way to tell the gridview how many elements I have on my resultset with
public int CountItems{ get{ ... } }
but I didnt find a place to tell the GV this value.
What is the strategy here? Is it necessary to have an ObjectDS? I refuse to belive so!
What can I do to have Paging?