Empty Datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Davef

    #1

    Empty Datagrid

    Is there a way I can replace the datagrid with text "No recored returned" if
    there is no data?

    --

    _______________ _______
    David Fetrow
    HelixPoint LLC.
    http://www.helixpoint.com
    davef@helixpoin t.com

    Interested in Affordable Email Marketing?
    Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
    If you are interested in becoming a Reseller of HelixPoint products, contact
    davef@helixpoin t.com
    _______________ _______


  • John Saunders

    #2
    Re: Empty Datagrid

    "Davef" <dave@helixpoin t.com> wrote in message
    news:%23ifMQQsX DHA.3444@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Is there a way I can replace the datagrid with text "No recored returned"[/color]
    if[color=blue]
    > there is no data?[/color]

    Yes. Use a Label with your message in it, and a DataGrid. Make the label
    Visible="False" .

    If there's no data, make the Label Visible="True" and the DataGrid
    Visible="False" .
    --
    John Saunders
    Internet Engineer
    john.saunders@s urfcontrol.com


    Comment

    • S. Justin Gengo

      #3
      Re: Empty Datagrid

      Davef,

      Use the ItemDataBound event.

      Sincerely,

      --
      S. Justin Gengo, MCP
      Web Developer

      Free code library at:
      www.aboutfortunate.com

      "Out of chaos comes order."
      Nietzche


      "Davef" <dave@helixpoin t.com> wrote in message
      news:%23ifMQQsX DHA.3444@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Is there a way I can replace the datagrid with text "No recored returned"[/color]
      if[color=blue]
      > there is no data?
      >
      > --
      >
      > _______________ _______
      > David Fetrow
      > HelixPoint LLC.
      > http://www.helixpoint.com
      > davef@helixpoin t.com
      >
      > Interested in Affordable Email Marketing?
      > Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
      > If you are interested in becoming a Reseller of HelixPoint products,[/color]
      contact[color=blue]
      > davef@helixpoin t.com
      > _______________ _______
      >
      >[/color]


      Comment

      Working...