MetaColumn.DefaultValue Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.

.NET Framework
Available since 3.5
Return to top