Hiding Rows In A DataList

F

funphxnaz

I'm using ASP.net 2.0 (VWD) and I'd like to programmatically hide a
DataList row based on a Repeater nested in the DataList.

Specifically, if the Repeater.Items.Count = 0, I'd like the entire
Datalist row to be hidden.

The solutions presented within the group are all years old, and revolve
around making every control in the DataList row "visible=false". This
seems very code inefficient as my Datalist row contains dozens of
controls.

Is there any way to do this efficiently? Or should I switch from a
Datalist to a GridView?
 

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,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top