DynamicDataExtensions.FormatEditValue Method (IFieldFormattingOptions, Object)


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

Formats the specified field value by using the specified formatting options.

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

Public Shared Function FormatEditValue (
	formattingOptions As IFieldFormattingOptions,
	fieldValue As Object
) As String


Type: System.Web.DynamicData.IFieldFormattingOptions

The IFieldFormattingOptions instance to use.

Type: System.Object

The field value to format.

Return Value

Type: System.String

The field value that has been formatted by using the specified formatting options.

The FormatEditValue method is like the FormatValue method, but it is used when the field is in edit mode.

.NET Framework
Available since 3.5
Return to top