Showing GridView Headers When There Is No Data

"Such and Such a grid should not be blank when there is no data, it should show the column headers with no rows."

How many times have you heard that?

Yeah, I've seen it as bugs in the change request system!! Seems like a simple enough request, but trying to deliver it sends you straight into the land of GridView hacking. Oh why was such a simple feature not incorporated into the GridView. Microsoft are you listening.

Instead you have to jump hoops.

Here are some of those hoops that help you solve the problem

http://forums.asp.net/p/960167/1892125.aspx#1892125

http://mattberseth.com/blog/2007/07/how_to_show_header_and_footer.html

Infact let google guide you through all the numerous posts on this topic.

 

Cross-posted from tariqayad.com

Print | posted on Thursday, September 06, 2007 2:44 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 5 and 3 and type the answer here: