Indicates whether the specified source type can be converted to the type of the associated control property.
- context
An System.ComponentModel.ITypeDescriptorContext implementation that can be used to gain additional context information.
- sourceType
The type to convert from.
![]()
true if the converter can perform the conversion; otherwise, false.
Call the DataColumnSelectionConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method to determine whether the DataColumnSelectionConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method supports converting the source type.
The DataColumnSelectionConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method can convert only from a string, so the DataColumnSelectionConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method returns true when sourceType is a string.