Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Where to set "ShowFooter" attribute

Thread Tools

Where to set "ShowFooter" attribute

Bren Besser
Posts: n/a
When or where (which event) can I use to set the "ShowFooter" attribute
of my DataGrid.

I put summary info in the footer. After I return my DataSet, I test the
Rows.Count. If there are no rows, I'd like to hide the footer.

I've tried to set it in the PageLoad and the OnDataBound events but I
can't get it to work there.

Thanking you in advance for your help.


Reply With Quote
Bren Besser
Posts: n/a
I showed what I was doing to a friend,

if (ds.Tables[0].Rows.Count == 0)
SubsVendorSummaryGrid.Attributes["ShowFooter"] = "False";

and he showed me that this would work,

SubsVendorSummaryGrid.ShowFooter = false;

Reply With Quote

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
Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'body'. anonymous ASP .Net 1 08-02-2006 08:05 AM
picking value of one attribute based on a child elements attribute? XPath? XML 2 03-06-2006 05:19 AM
Implied instance attribute creation when referencing a class attribute Russell Warren Python 5 01-17-2006 05:07 AM
XSLT: Making attribute to parent attribute Bostonasian XML 1 09-18-2005 07:30 AM
class attribute to instance attribute Donnal Walter Python 4 07-06-2005 04:35 AM