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 RadGridDateTimeConverter class.
Declaration
public RadGridDateTimeConverter(GridViewDateTimeColumn ownerColumn)
Parameters
|
GridViewDateTimeColumn
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 System.DateTime using the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
|
System.ComponentModel.ITypeDescriptorContext
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
|
System.Type
sourceType
A System.Type that represents the type you wish to convert from. |
Returns
|
System.Boolean
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.ComponentModel.ITypeDescriptorContext
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
|
System.Type
destinationType
A System.Type that represents the type you wish to convert to. |
Returns
|
System.Boolean
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.ComponentModel.ITypeDescriptorContext
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
|
System.Globalization.CultureInfo
culture
The System.Globalization.CultureInfo to use as the current culture. |
|
System.Object
value
The System.Object to convert. |
Returns
|
System.Object
An System.Object that represents the converted value. |
Exceptions
|
System.NotSupportedException
The conversion cannot be performed. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to a System.DateTime using the arguments.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
|
System.ComponentModel.ITypeDescriptorContext
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
|
System.Globalization.CultureInfo
culture
An optional System.Globalization.CultureInfo. If not supplied, the current culture is assumed. |
|
System.Object
value
The System.Object to convert. |
|
System.Type
destinationType
The System.Type to convert the value to. |
Returns
|
System.Object
An System.Object that represents the converted |
Exceptions
|
System.NotSupportedException
The conversion cannot be performed. |