ClassRadGridDateTimeConverter
Represents a DateTime converter.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class RadGridDateTimeConverter : DateTimeConverter
Inheritance: objectTypeConverterDateTimeConverterRadGridDateTimeConverter
Inherited Members
Constructors
RadGridDateTimeConverter(GridViewDateTimeColumn)
Initializes a new instance of the RadGridDateTimeConverter class.
Declaration
public RadGridDateTimeConverter(GridViewDateTimeColumn ownerColumn)
Parameters
ownerColumn
The owner column.
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Gets a value indicating whether this converter can convert an object in the given source type to a DateTime using the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
sourceType
A Type that represents the type you wish to convert from.
Returns
true if this object can perform the conversion; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
destinationType
A Type that represents the type you wish to convert to.
Returns
true if this converter can perform the conversion; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the given object to the type of this converter, using the specified context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The object to convert.
Returns
An object that represents the converted value.
Exceptions
The conversion cannot be performed.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to a DateTime using the arguments.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
An optional CultureInfo. If not supplied, the current culture is assumed.
value
The object to convert.
destinationType
The Type to convert the value to.
Returns
An object that represents the converted value.
Exceptions
The conversion cannot be performed.
Overrides