D
darrel
Or, rather, fill a dataset with a PagedDataSource object?
I am using PagedData right now in this manner:
Dim pagedData As New PagedDataSource()
Sub doPaging()
'query the DB and return a copy of the Dataset as pagedData
pagedData.DataSource = getTheData().DefaultView
pagedData.AllowPaging = True
pagedData.PageSize = 10
Try
pagedData.CurrentPageIndex =
System.Int32.Parse(Request.QueryString("Page")).ToString()
Catch ex As System.Exception
pagedData.CurrentPageIndex = 0
End Try
Repeater1.DataSource = pagedData
Repeater1.DataBind()
End Sub
That works fine. The catch is that for this particular data, I don't want to
bind it to a rpeater, but rather I'd like to walk through the data manually
and attach it to a string using a stringBuilder.
So, something like:
1 Create new dataset
2 fill dataset with pagedData
3 walk through data an attatch to string builder
The question I have is if you can do step 2 or not.
-Darrel
I am using PagedData right now in this manner:
Dim pagedData As New PagedDataSource()
Sub doPaging()
'query the DB and return a copy of the Dataset as pagedData
pagedData.DataSource = getTheData().DefaultView
pagedData.AllowPaging = True
pagedData.PageSize = 10
Try
pagedData.CurrentPageIndex =
System.Int32.Parse(Request.QueryString("Page")).ToString()
Catch ex As System.Exception
pagedData.CurrentPageIndex = 0
End Try
Repeater1.DataSource = pagedData
Repeater1.DataBind()
End Sub
That works fine. The catch is that for this particular data, I don't want to
bind it to a rpeater, but rather I'd like to walk through the data manually
and attach it to a string using a stringBuilder.
So, something like:
1 Create new dataset
2 fill dataset with pagedData
3 walk through data an attatch to string builder
The question I have is if you can do step 2 or not.
-Darrel