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