GridView Control

M

Machi

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
displays the header text when there is no record in my table?Thanks.
 
B

Brock Allen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top