Where to set "ShowFooter" attribute

Discussion in 'ASP .Net Datagrid Control' started by Bren Besser, Jun 23, 2005.

  1. Bren Besser

    Bren Besser Guest

    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
    Bren Besser, Jun 23, 2005
    #1
    1. Advertising

  2. Bren Besser

    Bren Besser Guest

    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;
    Bren Besser, Jun 25, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris S
    Replies:
    0
    Views:
    476
    Chris S
    Apr 6, 2006
  2. Bostonasian
    Replies:
    1
    Views:
    815
    Joris Gillis
    Sep 18, 2005
  3. Replies:
    2
    Views:
    1,075
    Henry S. Thompson
    Mar 6, 2006
  4. Nick C

    Showfooter not working?

    Nick C, Feb 2, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    505
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 2, 2007
  5. Jon Turner

    DataGrid ShowFooter Routine

    Jon Turner, Oct 10, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    130
    Jon Turner
    Oct 10, 2003
Loading...

Share This Page