1
Answer

Datalist inside gridview with no records

Ajay Mavatkar

Ajay Mavatkar

7y
199
1
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)