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

    • John Saunders

      #3
      Re: Empty Datagrid

      "MS News (MS ILM)" <sql_agentman@h otmail.com> wrote in message
      news:OJ%23YIFtX DHA.1748@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > John,
      >
      > You are a person endowed with transcendent mental superiority
      > How many agree?
      > I do[/color]

      I don't.

      I only recently learned this lesson: "render all, display one" . I've been
      doing ASP.NET for two years, and only learned this a month ago!

      That's hardly transcendant.
      --
      John Saunders
      Internet Engineer
      john.saunders@s urfcontrol.com


      Comment

      • S. Justin Gengo

        #4
        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

        • John Saunders

          #5
          Re: Empty Datagrid

          "MS News (MS ILM)" <sql_agentman@h otmail.com> wrote in message
          news:OJ%23YIFtX DHA.1748@TK2MSF TNGP12.phx.gbl. ..[color=blue]
          > John,
          >
          > You are a person endowed with transcendent mental superiority
          > How many agree?
          > I do[/color]

          I don't.

          I only recently learned this lesson: "render all, display one" . I've been
          doing ASP.NET for two years, and only learned this a month ago!

          That's hardly transcendant.
          --
          John Saunders
          Internet Engineer
          john.saunders@s urfcontrol.com


          Comment

          • MS News \(MS ILM\)

            #6
            Re: Empty Datagrid

            You are a modest man. tending toward diffidence.
            Good job
            Thanks

            "John Saunders" <john.saunders@ surfcontrol.com > wrote in message
            news:ulPcmcyXDH A.1204@TK2MSFTN GP12.phx.gbl...[color=blue]
            > "MS News (MS ILM)" <sql_agentman@h otmail.com> wrote in message
            > news:OJ%23YIFtX DHA.1748@TK2MSF TNGP12.phx.gbl. ..[color=green]
            > > John,
            > >
            > > You are a person endowed with transcendent mental superiority
            > > How many agree?
            > > I do[/color]
            >
            > I don't.
            >
            > I only recently learned this lesson: "render all, display one" . I've been
            > doing ASP.NET for two years, and only learned this a month ago!
            >
            > That's hardly transcendant.
            > --
            > John Saunders
            > Internet Engineer
            > john.saunders@s urfcontrol.com
            >
            >[/color]


            Comment

            Working...