Export (0) Print
Expand All

MetaColumn.DefaultValue Property

Gets the default value for the data field.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public Object DefaultValue { get; }

Property Value

Type: System.Object
The default value for the data field.

The DefaultValue property is typically used to pre-populate the field value when a new entry is created. This property verifies if a DefaultValueAttribute attribute is applied to the data field and retrieves the value of the Value property.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft