protected function addToForm(CustomField $customfield)
    {
        if (!$customfield->formAutoDisplay()) {
            return false;
        }
        $field = $customfield->setModel($this->grid->row);


        $this->grid->fieldset(function (Fieldset $fieldset) use($field) {
            $fieldset->add($field);
        });

        $this->grid->rules(array_merge($this->grid->rules, $field->getRules()));

        $this->grid->row->saved(function($row) use($field) {

            $field->onSave($row);
        });



        return $this;
    }