XPTable.Models.ColumnModel.SetCellEditor C# (CSharp) Method

SetCellEditor() public method

Associates the specified ICellRenderer with the specified name
public SetCellEditor ( string name, ICellEditor editor ) : void
name string The name to be associated with the specified ICellEditor
editor ICellEditor The ICellEditor to be added to the ColumnModel
return void
        public void SetCellEditor(string name, ICellEditor editor)
        {
            if (name == null || name.Length == 0 || editor == null)
            {
                return;
            }

            name = name.ToUpper();

            if (this.cellEditors.ContainsKey(name))
            {
                this.cellEditors.Remove(name);

                this.cellEditors[name] = editor;
            }
            else
            {
                this.cellEditors.Add(name, editor);
            }
        }