Re: Empty GridView

Tech-Archive recommends: Fix windows errors by optimizing your registry



Jim,

take a look at the EmptyDataTemplate and EmptyDataText properties of the
gridview.

--

Andrew Robinson
http://blog.binaryocean.com
http://www.bellinghamdotnet.org


"Jim McGivney" <mcgiv1@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ejUbFyd6HHA.980@xxxxxxxxxxxxxxxxxxxxxxx
At times I display a page where there is no data for the GridView. The
GridView is not displayed. In this case I would like to display a message
such as "No data meets search criteria".
How do I detect an empty GridView ?
Thanks,
Jim



.



Relevant Pages

  • RE: VS2005 DataList with Nested GridView using ObjectDataSource
    ... you're wantting to display some data on the ASP.NET ... web page through the DataList control, and since those data records can ... category items in the DataList and in each DataList item, use a GridView ... | customer number in a grid (call it QUERY A). ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Different DetailsView templates for items in a GridView. Is it possible?
    ... One field should really have one meaning, not dependent on the values of other fields, like the meaning of content depends on content type in this example. ... if I a filename is selected in the 'parent' GridView I'd like the DetailsView display a short text box and have a corresponding validator attached to it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: subheaders with totals for each
    ... As for displaying sub total row, there does exists some article demonstrate ... How to Display Sum Total in the Footer of the GridView Control ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: subheaders with totals for each
    ... so with this how can i add totals for each subheader/group? ... on adding sum total footer in GridView or datagrid: ... How to Display Sum Total in the Footer of the GridView Control ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: 2nd Post - {0:c} causes deletes to fail!
    ... For the problem, in the previous thread, as I didn't get the same gridview ... display, I think it maybe caused by the culture setting which control the ... I get an Input String Was Not In Correct Format ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)