Groups | Blog | Home
all groups > asp.net datagrid control > june 2006 >

asp.net datagrid control : GridView when Empty


donald
6/28/2006 6:30:20 AM
Hi there,

I got a GridView and when I have no data in it. it just doesn't appear
on the page i just want the header and footer to show?

Also if possiable for it to say "no data" where the item would be?

Thanks

Donald
PeterKellner
6/29/2006 12:16:30 PM
[quoted text, click to view]

you can use the GridView.EmptyDataTemplate Property

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatemplate.aspx


Peter Kellner
AddThis Social Bookmark Button