Solved

Column span all columns when Gridview Data is empty

Posted on 2013-01-25
4
511 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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now