Display ASP.NET gridview header/footer when no data present - by Alphonse G

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 228384 Comments
Status Closed Workarounds
Type Suggestion Repros 1
Opened 10/17/2006 5:39:14 AM
Access Restriction Public


When using a gridview for data editing purposes, there is usually some method of adding new records also.
One very neat, desirable method is to add the necessary controls to the footer of the gridview.
The problem with this is that if there is no data to begin with, the gridview does not display at all.
While I realize it can be done using the empty data row, that requires duplication of the header as well as all the necessary footer controls.
The gridview should have a property to display header/footer when there is no data.
In 1.1 the datagrid always displayed and one could easily hide it if desired.
Sign in to post a comment.
Posted by Microsoft on 11/27/2006 at 11:37 PM

Thanks for your feedback on the .NET Framework! S. Somasegar, the Developer Division VP recently wrote in his blog (http://blogs.msdn.com/somasegar/archive/2006/05/18/601354.aspx) on how the next release of the .NET Framework (codename “Orcas”) requires a high degree of backward compatibility and therefore, how we are being very strict about the number and scope of bugs that are fixed and features that are added in the “Red Bits” during Orcas. Unfortunately, this bug falls into the red bits category, and so we are not able to address it in Orcas due to the potential for it to introduce compatibility issues.

We recognize you submitted this bug because of a specific problem you are experiencing with the product. If you submitted this bug because of a blocking problem you’re experiencing and continue to experience, you may want to contact Microsoft Professional Services http://support.microsoft.com. Alternatively you may find additional information by searching or posting to the ASP.NET forums (http://forums.asp.net). Finally, if you submitted this bug because of a blocking problem you’re experiencing and continue to experience, you may want to also open a support call with Microsoft Professional Services (http://support.microsoft.com/?LN=en-us&scid=gp%3Ben-us%3Bofferprophone&x=8&y=14), which is a better support option when you’re experiencing business impact for your problem and are unable to resolve it in a timely manner on forums or other support channels.

Before starting work on the next full release of the .NET Framework, we will review the Connect data to help us identify and address the top customer reported issues. We’ll broadly review all bugs submitted to date at that time.

Rich Ersek
UI Frameworks Team