<p>Is there any way to apply an attribute to a model file in ASP.NET Dynamic Data to hide the column?</p>

<p>For instance, I can currently set the display name of a column like this:</p>

<pre><code>[DisplayName("Last name")]
public object Last_name { get; set; }
</code></pre>

<p>Is there a similar way to hide a column?</p>

<p><strong>Edit</strong>: Many thanks to Christian Hagelid for going the extra mile and giving a spot-on answer :-)</p>

Had no idea what ASP.NET Dynamic Data was so you promted me to so some research :)
Looks like the property you are looking for is
```
```
[ScaffoldColumn(false)]
```
```
There is also a similar property for tables
```
```
[ScaffoldTable(false)]
```
```
source