Ken Cox [MS MVP]
2/11/2004 2:59:00 AM
If you just want to insert text into the footer, try this?
Private Sub DataGrid1_ItemCreated _
(ByVal sender As Object, ByVal e As _
DataGridItemEventArgs) Handles DataGrid1.ItemCreated
If e.Item.ItemType = ListItemType.Pager Then
Dim pagerCell As TableCell
pagerCell = CType(e.Item.Controls(0), TableCell)
Dim pageOf As String = _
"Choose the page you want to go: "
pagerCell.Controls.AddAt(0, _
New LiteralControl(pageOf))
End If
End Sub
Does this help?
Ken
Microsoft MVP [ASP.NET]
"Rafa®" <lixorafa@terra.com.br> wrote in message
news:775AA2E1-2062-4132-981C-CD9A747A55F1@microsoft.com...
> I'm using DataGrid to show a paged list from a table.
> I designed the style of the pager to be, pager numbers, centralized in the
> bottom of the page.
> I would like to add a caption to those page numbers in the bottom,
> something like:
>
> "Choose the page you want to go: [1] 2 3 4 5 6 7 ..."
>
> Does anybody know a way to do that with the standard DataGrid?
> Thanks a lot!
> Rafa®