DotNet Blogs

Articles of ASP.NET, C# & SQL Server

Show no data to display message when gridview is empty

Posted by Sujit Kumar on August 14, 2008

Show Message when Gridview is empty

there is 2 method to show message when gridview is empty

  • setting ShowHeaderWhenEmpty=”true” EmptyDataText=”No records found” property of gridview
  • using EmptyDataTemplate column of gridview
  • 2 Responses to “Show no data to display message when gridview is empty”

    1. amg said

      thnks simply and useful.

    2. Vijay said

      I used VS2008, No property “ShowHeaderWhenEmpty”. its not work for me.

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>