Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add text to paging row of grid.

Status
Not open for further replies.

bartee

MIS
Mar 20, 2005
147
US
I have a datagrid in my appliction -- it's set to use the paging properties with default paging options. Works fine.

In the pager row of the grid (it currently displays only the << < > >> page navigations), I also want to display text.

For example, if I wanted it to display "100 total records", how can I do it?

I am currently displaying this information in a label control outside the grid -- but I really would like it to display in the pager row of the grid.

Any suggestions would be helpful. Thanks.
 
I don't see a way to show the row count in the pager but you can place it in the footer:

Code:
'In the ItemDataBound of the grid:
If e.Item.ItemType = ListItemType.Footer Then
   e.Item.Cells(0).Text = some var with row count
End If

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top