Any kind of Hidden attribute in System.ComponentModel.DataAnnotations?

I am trying to write a dynamic control in Microsoft MVC that allows me to edit an object in a grid (in particular using jqgrid). Well, I build my speakers and collegues in my controller based on the object I'm trying to change. I would like to be able to mark the column as a hidden column, but I would like to not just create arbitrary attributes if the standard one already exists. So I am looking through System.ComponentModel.DataAnnotations, which has a lot of good things, but not what I'm looking for. Is there such an attribute? Thank!

+5
source share
3 answers

What about using DisplayAttribute.AutoGenerateField ? You can set the value to false if you do not want to use the autogenous interface for this property.

+4
source

, .NET 4 .

EditorBrowsableAttribute, e. . Visual Studio Designer IntelliSense:

http://msdn.microsoft.com/en-us/library/8a045wyx(v=VS.80).aspx

.NET 1.0.

0

All Articles