Export (0) Print
Expand All

MetaColumn Class

Represents a database column that is used by Dynamic Data.

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

public class MetaColumn : IFieldFormattingOptions

The MetaColumn type exposes the following members.

  NameDescription
Public methodMetaColumnInitializes a new instance of the MetaColumn class.
Top

  NameDescription
Public propertyAllowInitialValueGets or sets a value that specifies whether a column enables a value to be inserted.
Public propertyApplyFormatInEditModeGets a value that indicates whether the formatting string specified by the DataFormatString property is applied to field values when the data-bound control that contains the data field that is represented by the MetaColumn object is in edit mode.
Public propertyAttributesGets the collection of metadata attributes that apply to the data field represented by the MetaColumn object.
Public propertyColumnTypeGets the data field type.
Public propertyConvertEmptyStringToNullGets a value that indicates whether empty string values ("") are automatically converted to null values when the data field is updated in the data source.
Public propertyDataFormatStringGets the string that specifies the display format for the field value.
Public propertyDataTypeAttributeGets the DataTypeAttribute attribute that is applied to the data field.
Public propertyDefaultValueGets the default value for the data field.
Public propertyDescriptionGets the description for the data field.
Public propertyDisplayNameGets the display name for the data field.
Public propertyEntityTypePropertyGets an object that contains attributes of the property that represents the data field in the entity type.
Public propertyFilterUIHintGets the FilterUIHint value that is used for the column.
Public propertyHtmlEncodeGets a value that indicates whether field values are HTML-encoded before they are displayed in a data-bound control.
Public propertyIsBinaryDataGets a value that indicates whether the data field contains binary data.
Public propertyIsCustomPropertyGets a value that indicates whether the data field exists in the database.
Public propertyIsFloatingPointGets a value that indicates whether the data field is a floating-point type.
Public propertyIsForeignKeyComponentGets a value that indicates whether the data field is part of a foreign key.
Public propertyIsGeneratedGets a value that indicates whether the data field value is automatically generated in the database.
Public propertyIsIntegerGets a value that indicates whether the data field type is an integer type.
Public propertyIsLongStringGets a value that indicates whether the data field type can contain long strings.
Public propertyIsPrimaryKeyGets a value that indicates whether the data field is part of the table's primary key.
Public propertyIsReadOnlyGets a value that indicates whether the data field is read-only.
Public propertyIsRequiredGets a value that indicates whether the data field requires a value.
Public propertyIsStringGets a value that indicates whether the data field type is a string type.
Public propertyMaxLengthGets a value that indicates the maximum length of data that can be stored in the data field.
Public propertyModelGets the MetaModel object that represents the data model that this data field belongs to.
Public propertyNameGets the name of the data field.
Public propertyNullDisplayTextGets the caption that is displayed for a field when the field's value is null.
Public propertyPromptGets a value that can be used as a watermark in the UI that is bound to data in the column.
Public propertyProviderGets the abstraction provider object that is used to generate the MetaColumn object.
Public propertyRequiredErrorMessageGets the error message that is displayed when the data field requires a value but its value is empty.
Public propertyScaffoldGets a value that indicates whether the data field should be displayed.
Public propertyShortDisplayNameGets the short name for the column.
Public propertySortExpressionGets the expression that is used to determine the sort order for the data field.
Public propertyTableGets the MetaTable object that represents the table that the data field belongs to.
Public propertyTypeCodeGets the type of the data field.
Public propertyUIHintGets the name of the field template specified for the data field.
Top

  NameDescription
Protected methodBuildAttributeCollectionGets the attribute collection.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInitializes data that might not be available when the constructor is called.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResetMetadataClears cached column metadata.
Public methodToStringGets the data field name. (Overrides Object.ToString().)
Top

  NameDescription
Public Extension MethodConvertEditedValueReturns the value provided by a user for a control that is being validated. (Defined by DynamicDataExtensions.)
Public Extension MethodFormatEditValueFormats the specified field value by using the specified formatting options. (Defined by DynamicDataExtensions.)
Public Extension MethodFormatValueFormats the specified field value by using the specified formatting options. (Defined by DynamicDataExtensions.)
Public Extension MethodGetEnumTypeGets the type of the enumeration that represents the column. (Defined by DynamicDataExtensions.)
Top

In ASP.NET Dynamic Data applications, the MetaColumn class represents a database field. The MetaColumn class lets you retrieve information about the data field such as type and metadata information.

You can retrieve the table that the data field belongs to by using the Table property. You can also retrieve the data model by using the Model property.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft