Where to set "ShowFooter" attribute

B

Bren Besser

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.

Bren
 
B

Bren Besser

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;
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top