Problem displaying ASP.NET GridView inside an AjaxToolkit Popup

Corey Fleig 120 Reputation points
2025-04-01T16:02:56.91+00:00

Is there a way to display the gridview header, etc. inside AjaxToolkit popup, even when the grid has no data?

I'd like to have users see at least the Gridview header, so they know the app is working, rather than a completely blank screen.

Community Center | Not monitored
{count} votes

Answer accepted by question author
  1. Pradeep M 9,800 Reputation points Microsoft External Staff Moderator
    2025-04-02T05:12:14.79+00:00

    Hi Corey Fleig,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer. 

    Ask: Problem displaying ASP.NET GridView inside an AjaxToolkit Popup 

    Solution: I found out that the GridView "ShowHeaderWhenEmpty=true" works only when there is a databound! 

    Please feel free to contact us if you have any additional questions.     

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members. 

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Corey Fleig 120 Reputation points
    2025-04-01T16:30:02.7866667+00:00

    Please disregard this question. I found out that the GridView "ShowHeaderWhenEmpty=true" works only when there is a databound!

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.