edColorPickerDropDown

With editor edColorPickerDropDown in a column of a TAdvcolumnGrid, after selecting a color, the dropdown button is visible until I click in another cell. Is there a way to make it go away immediately on color selection?

You can do this by assigning an event to the color picker's OnDropUp event in the following way:


procedure TForm1.ColorPickerDropUp(Sender: TObject; Cancelled: Boolean);
begin
  advstringgrid1.HideInplaceEdit;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  advstringgrid1.ColorPickerDropDown.OnDropUp := ColorPickerDropUp;
end;

It works! And I would never have guessed in a million years that is how to do it! Thank you very much!