implement the OnSelectEditor event
procedure TForm1.StringGrid1SelectEditor(Sender: TObject; aCol, aRow: Integer;
var Editor: TWinControl);
begin
Editor := TWinControl(TPickListCellEditor.Create(Self));
end;
and use the OnPickList select...
P.S.
You need to populate the list of course...
also this is just a test code, you need to create PickListCellEditor elsewhere
because each time this event gets called it will keep adding another instance to the list, and this is going to
eat memory on you..
create the PickListCellEditor during the startup, place it in your form and use the OnCreate to initiate it.
But in the SelectEditor event, this is where you populate the list each time a cell is selected for edit, each
cell maybe different.
Pickeditor.Items.Clear;
Pickeditor.AddItem('someText', nil); etc..