how to display Footer in a gridview even if there is no data bound

Discussion in 'ASP .Net' started by ibiza, Jan 25, 2006.

  1. ibiza

    ibiza Guest

    Hi,

    well, I'd like to know how to still display the footer of a gridview
    even if there is no data bound from the db. That is because I use the
    footer to put my inputs to add a new record, so I need to be able to
    add records, even if there is none yet...

    thanks!
     
    ibiza, Jan 25, 2006
    #1
    1. Advertising

  2. ibiza

    sloan Guest

    While its a hack, you're probably going to have to put in a dummy row in
    your DataSource.
    And (maybe) hide that row.



    "ibiza" <> wrote in message
    news:...
    > Hi,
    >
    > well, I'd like to know how to still display the footer of a gridview
    > even if there is no data bound from the db. That is because I use the
    > footer to put my inputs to add a new record, so I need to be able to
    > add records, even if there is none yet...
    >
    > thanks!
    >
     
    sloan, Jan 25, 2006
    #2
    1. Advertising

  3. There is an onemptytext row, maybe you can rewrite it's contents on render?


    "ibiza" <> schreef in bericht
    news:...
    > Hi,
    >
    > well, I'd like to know how to still display the footer of a gridview
    > even if there is no data bound from the db. That is because I use the
    > footer to put my inputs to add a new record, so I need to be able to
    > add records, even if there is none yet...
    >
    > thanks!
    >
     
    Edwin Knoppert, Jan 25, 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. Mohamed Zaki

    Datagrid footer bound dropdownlist

    Mohamed Zaki, Jun 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,209
    Martin Marinov
    Jun 15, 2004
  2. Phil Winstanley [Microsoft MVP ASP.NET]

    Re: Datagrid footer bound dropdownlist

    Phil Winstanley [Microsoft MVP ASP.NET], Jun 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    440
    Mohamed Zaki
    Jun 16, 2004
  3. Stan Goodman

    Even older fart, even newer newbie

    Stan Goodman, Jul 3, 2003, in forum: Java
    Replies:
    11
    Views:
    723
    Stan Goodman
    Jul 4, 2003
  4. Mario Krsnic
    Replies:
    0
    Views:
    400
    Mario Krsnic
    Jun 23, 2006
  5. Henrik
    Replies:
    1
    Views:
    466
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
Loading...

Share This Page