MetaColumn::Scaffold Property
Gets a value that indicates whether the data field should be displayed.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
The Scaffold property indicates whether a data field should be displayed when it is automatically generated by ASP.NET Dynamic Data. This property verifies if a ScaffoldColumnAttribute attribute is applied to the data field and returns the value of the ScaffoldColumnAttribute::Scaffold property. If a ScaffoldColumnAttribute attribute is not applied to the data field, Dynamic Data uses the following rules to determine whether to display the column:
If a UIHintAttribute attribute is applied to the data field, the data field is displayed. This rule overrides all the other rules.
If the value of the IsForeignKeyComponent property is true, the data field is not displayed. This occurs because Dynamic Data handles foreign-key fields in a different way and will not typically display the foreign-key field value.
If the value of the IsGenerated property is true, the data field is not displayed. Typically fields that are automatically generated in the database do not contain relevant information. Make sure that you apply the UIHintAttribute attribute to the data field, if the data field must be displayed.
If the value of the IsCustomProperty property is true, the data field is not displayed.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.