Ajay Mavatkar

Ajay Mavatkar

  • NA
  • 68
  • 12.6k

Datalist inside gridview with no records

Sep 6 2017 10:22 AM
Hi,
 
How to set no records text of datalist which is inside gridview.
 
<FooterTemplate>
<asp:Label Visible='<%#bool.Parse((dlList1.Items.Count==0).ToString())%>' runat="server" ID="lblNoRecord" Text="no records."></asp:Label>
</FooterTemplate> 
 
 Here 'dlList1' is not finding since datalist is inside gridview.
 
Any help?

Answers (1)