Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Column span all columns when Gridview Data is empty

Posted on 2013-01-25
4
Medium Priority
?
533 Views
Last Modified: 2013-01-28
Hello Experts,

I was trying to show gridview Headers , when there is no data, but I cannot column span all columns and remove the rowstyle and show the text "No Data Present".

Sample gridview:

ID         NAME
--        ------------

     NO DATA PRESENT


Something like above.
0
Comment
Question by:ASPDEV
  • 2
  • 2
4 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 38820693
With 4.0 you can set ShowHeaderWhenEmpty="True" and have EmptyDataTemplate to have your text.
0
 

Author Comment

by:ASPDEV
ID: 38827257
Sorry, It was ASP.NET 3.5.
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 1500 total points
ID: 38827602
Then there isn't an built-in way but weird workarounds.
Some of them listed here
0
 

Author Closing Comment

by:ASPDEV
ID: 38828876
Thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question