Colorpicker with dbadvgrid

hello, I have a data base with a field called color that I want to populate with a ColorPickerDropDown. So I implemented this in the geteditortype event of the dbgrid, but nothing gets written in the field after the post. The other fields are ok. Are there some lines of code to be written to retrieve the color ?
thanks
regards

The purpose of OnGetEditorType is to just specify what inplace editor will be used for a cell. This is not related to posting data. When this editor type is used, it normally just sets grid.Colors[col,row]: TColor. You might implement OnCellValidate to capture the edited value there and write it to grid.Cells[col,row] as grid.Cells[col,row] is what is posted to the DB.