I am using a repeater control bound to an objectdatasource. the objectdatasource has a slectmethod that brings back a list of product objects (wine in this case). Everything is hunky dory except when it comes to paging the repeater so that only x amount of priducts are shown.
I am using a tableadapter to get the info from the database into a dataset and then using a method to put that dataset into the list (which is being used by the objectdatasource).
Below is the code that inserts the info into the list. I figure this would be the easiest place to page by just saying that it must be bewtween certain indexes, however a datarow doesn't have an index.
Public Shared Function testing1() As List(Of Wine)
Dim objList As New List(Of Wine)
Dim objTemp As New List(Of Wine)
Dim tbl As Data.DataTable = WinesBLL.Testing()
Dim row As Data.DataRow
For Each row In tbl.Rows
Dim objWine As New Wine(row("WineName"), row("WineryName"), row("WineVintage"))