Display "No Data Found" and Paging in repeater

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.
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top