I have a ICollection
class LabCollection
with an array list. This array list contains another class LabEntity
. LabEntity has properties LabID, LabName etc.
I am binding ICollection class to gridview:
LabCollection objLabCollection = new LabCollection();
gridview.DataSource = objlabCollection;
gridview.DataBind();
I want to apply page indexing / pagination to gridview, how can I do that using the above.