By default, the GridFieldAddExistingAutocompleter
displays the $Title
of the result. If you don't have Title
or Name
field, this defaults to #$ID
, as you're seeing.
You can either add a getTitle
method to your class that returns what you want, or change what gets returned by the component.
You'd do this using something like:
$config->getComponentByType('GridFieldAddExistingAutocompleter')->setResultsFormat('$TicketCode - $EventDate.Nice');