SourceGrid.Cells.Editors.ComboBox.SetEditValue C# (CSharp) Method

SetEditValue() public method

Set the specified value in the current editor control.
public SetEditValue ( object editValue ) : void
editValue object
return void
        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();
            }
        }