Footer row on a grid with no records?

Discussion in 'ASP .Net Datagrid Control' started by Arthur Dent, Mar 7, 2006.

  1. Arthur Dent

    Arthur Dent Guest

    I have a grid which has no records at first. ... see the new empty text
    property to specify text to show when there are no records, cool, cool.
    Now comes the catcher though... i use the footer of my grid to add new
    rows... the classic solution of template columns with textboxes in the
    footers to type in values for new records. Only problem is... now when there
    are no records, the footer doesnt show, so (without coding a whole new
    mechanism) you cannot add a new row either since thats IN the footer.

    Is there any way to force the GridView to show the Header/Footer even when
    it is showing the EmptyText?

    Thanks in advance,
    - Arthur Dent.
     
    Arthur Dent, Mar 7, 2006
    #1
    1. Advertising

  2. Arthur Dent

    Guest

    How about replicating the header and footer row in the
    EmptyDataTemplate?
     
    , Mar 8, 2006
    #2
    1. Advertising

  3. Arthur Dent

    Arthur Dent Guest

    Hm... i suppose that might work, though its kind of kludgey.

    <> wrote in message
    news:...
    > How about replicating the header and footer row in the
    > EmptyDataTemplate?
    >
     
    Arthur Dent, Mar 9, 2006
    #3
    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. Bazza Formez
    Replies:
    4
    Views:
    421
    Vanni Tomezzoli
    Dec 9, 2004
  2. IK

    How to find grid's row that matches row in dataset

    IK, Sep 15, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    203
  3. Iams

    How to edit records in a grid that's within a grid

    Iams, Mar 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    209
  4. D
    Replies:
    0
    Views:
    251
  5. Henrik
    Replies:
    1
    Views:
    460
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
Loading...

Share This Page