Hide DataList Items

C

Chris Kettenbach

Good Afternoon all,
I have a datalist. When I switch in to edit mode, I need to hide a couple
controls on the "ItemTemplate" and of course, when exiting Edit Mode, I will
need to show these items again. Any ideas? I have tried referencing the
controls and setting their visibile property to false, I tried in the
datalist item created and item databound events, but it can not find the
controls.Object reference not set to an instance of an object

Thanks for any suggestions,
Chris
 
C

Chris Kettenbach

I found a nice fix to this. I bound the visible property of the controls to
a function that evaluates if the datalist is in edit mode, if it is I return
false and hide the items. it works great!
 

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,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top