Visual Basic Power Packs DataRepeater Control - Empty Template?

H

Hrvoje

Hello everyone,

I have a question regarding the control from the subject:
What is the best way to display a message when the datasource datatable
contains no rows (e.g. ASP.NET GridView has a nice EmptyDataText property)?

Of course, I can create a datatable with a single cell containing the "No
data" or similar message and bind it to the DataRepeater in the case when
the primary data source contained no data but if there's a more elegant way
of doing it, I'll appreciate all the information.

Thanks,
Hrvoje
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top