Groups | Blog | Home
all groups > asp.net webcontrols > august 2007 >

asp.net webcontrols : Empty GridView


Jim McGivney
8/28/2007 8:32:55 PM
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

Andrew Robinson
8/28/2007 10:14:12 PM
Jim,

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

--

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


[quoted text, click to view]

AddThis Social Bookmark Button