Display "No Data Found" and Paging in repeater

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I display "No data found" in the repeater if there are no records
found after selecting an item from a dropdown list.

Another question is: Can repeater perform paging as in datagrid if the
number of records to be displayed in too long ?

I am using a repeater instead of datagrid as the latter does not allow me to
have one data-bound column with hyperlink.
 
Make a FooterTemplate with a label "No data found". In ItemDataBound event
detect the footer item and set the label Visible property to
(myRepeater.Items.Count > 0).

Eliyahu
 
Back
Top