WebGridColumn.Format Property

Gets or sets a function that is used to format the data item that is associated with the WebGrid column.

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

Syntax

'Declaration
Public Property Format As Func(Of Object, Object)
    Get 
    Set
'Usage
Dim instance As WebGridColumn 
Dim value As Func(Of Object, Object)

value = instance.Format

instance.Format = value
public Func<Object, Object> Format { get; set; }
public:
property Func<Object^, Object^>^ Format {
    Func<Object^, Object^>^ get ();
    void set (Func<Object^, Object^>^ value);
}
member Format : Func<Object, Object> with get, set
function get Format () : Func<Object, Object>
function set Format (value : Func<Object, Object>)

Property Value

Type: System.Func<Object, Object>
The function that is used to format that data item that is associated with the column.

Remarks

The value of this property is a function object of type Func<dynamic, object> that takes a dynamic object named item as its sole parameter and that returns an object whose ToString method formats the value of the dynamic object for rendering. This can be useful to reformat values into an easily readable form and to add HTML markup to provide consistent formatting for the column's data.

See Also

Reference

WebGridColumn Class

System.Web.Helpers Namespace