public override void SetEditValue(object editValue)
{
if (editValue is string && IsStringConversionSupported() &&
Control.DropDownStyle == ComboBoxStyle.DropDown)
{
Control.Text = (string)editValue;
Control.SelectionLength = 0;
if (Control.Text != null)
Control.SelectionStart = Control.Text.Length;
else
Control.SelectionStart = 0;
}
else
{
Control.Value = editValue;
Control.SelectAll();
}
}