Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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.
    [url]http://www.helixpoint.com[/url]
    [email]davef@helixpoint.com[/email]

    Interested in Affordable Email Marketing?
    Check out the HelixMailer at [url]http://www.helixpoint.com/helixmailer.asp[/url]
    If you are interested in becoming a Reseller of HelixPoint products, contact
    [email]davef@helixpoint.com[/email]
    ______________________


    Davef Guest

  2. Similar Questions and Discussions

    1. datagrid empty--bizarre
      I have simply copied the example code from the flex documentation, but the datagrid isn't displaying any contents. The httpservice request IS adding...
    2. DataGrid.Column.Count is empty?
      Hello, I have created my own datagrid control, derived from datagrid. Now my webform uses this datagrrd and calls the ItemDataBound method,...
    3. Empty row in DataGrid
      Hi! I have DataGrid with five columns. DataGrid must have every sixth row empty! Row 1 = DataItem 1 .... Row 5 = DataItem 5 Row 6 = Empty
    4. Null/Empty DataGrid Comparison
      I've got a page that does reports, which pulls a dataGrid from a SQL table. Sometimes there are no results for the report, so I added a textbox...
    5. Empty DataGrid Formatting
      Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the...
  3. #2

    Default Re: Empty Datagrid

    "Davef" <dave@helixpoint.com> wrote in message
    news:%23ifMQQsXDHA.3444@tk2msftngp13.phx.gbl...
    > Is there a way I can replace the datagrid with text "No recored returned"
    if
    > there is no data?
    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
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  4. #3

    Default Re: Empty Datagrid

    Davef,

    Use the ItemDataBound event.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


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

    S. Justin Gengo Guest

  5. #4

    Default Re: Empty Datagrid

    "MS News (MS ILM)" <sql_agentman@hotmail.com> wrote in message
    news:OJ%23YIFtXDHA.1748@TK2MSFTNGP12.phx.gbl...
    > John,
    >
    > You are a person endowed with transcendent mental superiority
    > How many agree?
    > I do
    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
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  6. #5

    Default Re: Empty Datagrid

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

    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:ulPcmcyXDHA.1204@TK2MSFTNGP12.phx.gbl...
    > "MS News (MS ILM)" <sql_agentman@hotmail.com> wrote in message
    > news:OJ%23YIFtXDHA.1748@TK2MSFTNGP12.phx.gbl...
    > > John,
    > >
    > > You are a person endowed with transcendent mental superiority
    > > How many agree?
    > > I do
    >
    > 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
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >

    MS News \(MS ILM\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139