Groups | Blog | Home
all groups > asp.net webcontrols > may 2005 >

asp.net webcontrols : GridView Control


Machi
5/11/2005 8:51:02 PM
I am very new to ASP.NET 2.0. I tried to use GridView control and its
built-in SqlDataSource object. Where there is data for a particular table
which i bind my GridView to, the GridView can show successfully. However,
when there is no record in my table which i bind my GridView to, the whole
GridView will not be displayed. May i know how to make my GridView just
Brock Allen
5/12/2005 8:43:49 AM
There is a <EmptyDataTemplate> you can specify for when there are now rows
to be shown. I usually put something like "No Rows Returned" or somesuch.

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button