Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview - set footer text

Reply
Thread Tools

Gridview - set footer text

 
 
Mel
Guest
Posts: n/a
 
      06-25-2008
How do I set the footer text for a GridView that has AllowPaging set
to True? I can only get the footer to appear on the first page but I
really want the same text to appear in the footer of all pages, how do
I do that?

Example Code:
Protected Sub Get_Data()
adsQuotes.SelectCommand = "SELECT [Quote #] FROM [Quotes] WHERE
([Quote Price] > 0)" 'access data source
adsQuotes.DataBind()
gvQuotes.DataBind() 'Gridview (50 rows per page)

'show total records and total price in the footer
gvQuotes.FooterRow.Cells(0).Text = "Totals: " & lngTotalRecs 'the
footer only appears on the first page, why?
gvQuotes.FooterRow.Cells(1).Text = Format(dblTotalPrice, "$#,##0.00")
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto: embed a text box in a footer of a GridView's boundfield columnto get data prior to a row insert dcollier9@cox.net ASP .Net 0 10-16-2008 03:31 PM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
add a second row to footer of gridview NewTel ASP .Net 1 02-09-2006 10:19 PM
add Another row to GridView Footer- NewTel ASP .Net 1 02-09-2006 10:18 PM
how to display Footer in a gridview even if there is no data bound ibiza ASP .Net 2 01-25-2006 09:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57