ComponentOne ASP.NET MVC Controls
DataType Method (BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder>)

C1.Web.Mvc.Fluent Namespace > BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Class : DataType Method
The field name.
The type of the field data.
Configurates C1.Web.Mvc.BaseODataCollectionViewService<T>.DataTypes. Sets an object to be used as a map for coercing data types when loading the data.
Syntax
'Declaration
 
Public Function DataType( _
   ByVal fieldName As String, _
   ByVal dataType As DataType _
) As TBuilder
public TBuilder DataType( 
   string fieldName,
   DataType dataType
)

Parameters

fieldName
The field name.
dataType
The type of the field data.

Return Value

Current builder.
Remarks
The object keys represent the field names and the values are C1.Web.Mvc.Grid.DataType values that indicate how the data should be coerced.
See Also

Reference

BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Class
BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Members