Class RadGridDateTimeConverter
Represents a DateTime converter.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class RadGridDateTimeConverter : DateTimeConverter
Constructors
RadGridDateTimeConverter(GridViewDateTimeColumn)
Initializes a new instance of the Rad
Declaration
public RadGridDateTimeConverter(GridViewDateTimeColumn ownerColumn)
Parameters
Grid 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 System.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. An System. |
System. A System. |
Returns
System. true if this object can perform the conversion; otherwise, false. |
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
System. An System. |
System. A System. |
Returns
System. true if this converter can perform the conversion; otherwise, false. |
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
System. An System. |
System. The System. |
System. The System. |
Returns
System. An System. |
Exceptions
System. The conversion cannot be performed. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to a System.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
System. An System. |
System. An optional System. |
System. The System. |
System. The System. |
Returns
System. An System. |
Exceptions
System. The conversion cannot be performed. |