Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
218
Empty grid
posted

I have a webgrid which displays the headers and group by box even if there is no data to display. How do I display a message 'Your search criteria have given no results.Please re-try with a different search criteria' when there is no data to display?

Parents
No Data
Reply
  • 28464
    posted

    I believe the NoDataMessage property directly on the DisplayLayout settings may be helpful in your case, for example: 

    <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server">
        <DisplayLayout NoDataMessage="No Data Displayed">
    <igtbl:UltraWebGrid>

    In the case where you want to hide the grid altogether (columns and everything), you can set the Visible property of the grid to false and display a label with custom message if the datasource has 0 rows.

    Hope this helps. 

Children