Hide Fields in ASP.NET DynamicData 4.0

I am playing around with ASP.NET v4.0 DynamicData and what to find a way to hide fields from the details/edit view. I can already hide columns in the grid via ScaffoldColumn=false.

Given that 4.0 is based on FormView, I am unable to use the old iAutoFieldGenerator mentioned in this article, as FormView does not use that.

http://csharpbits.notaclue.net/2008/10/dynamic-data-hiding-columns-in-selected.html 

I want to do this centrally in a class rather than custom pages.

Any ideas?
designavenueAsked:
Who is Participating?
 
designavenueConnect With a Mentor Author Commented:
Actually I found the answer on the same site:

http://csharpbits.notaclue.net/2010/02/new-way-to-do-column-generation-in.html 

Works beautifully!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.