Gridview numeric paging, how to insert 'page:' before numbers?

  • Thread starter Thread starter Edwin Knoppert
  • Start date Start date
E

Edwin Knoppert

I simply want to insert a word before the numerics for paging..
*If* i need to manage this true a template then how to keep the numeric
stuff?
I was only able to prepare buttons which do adding and subtracting, i want
the numerics.

?
 
I could only come up with:

protected void GridView1_RowCreated(object sender, GridViewRowEventArgs
e)
{
if (e.Row.RowType == DataControlRowType.Pager)
{
TableCell tCell = new TableCell();
tCell.Text = "Pagina:";
tCell.Font.Bold = true;
e.Row.Cells.AddAt(0, tCell);
}
}

But this shifts the paging numbers to the next column.
Rather unwanted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top