I am trying to create a TCalendarEdit containing column inside a grid component in the following way.
TDatecell = class(TCalendarEdit)
TDateColumn = class(TColumn)
function CreateCellControl: TStyledControl; override;
constructor Create(AOwner: TComponent); override;
constructor TDateColumn.Create(AOwner: TComponent);
function TDateColumn.CreateCellControl: TStyledControl;
Result := TDatecell.Create(Self);
It works fine. Then I am stack at populating the column from a FDQuery field of date type. I am capable to establish a Live Binding link and populate the columns of traditional types as well as I can add my DateColumn to the grid.
I tried to connect this column to BindSourceDB by
but this destroys all the columns in the grid and creates a new one (I suppose of TColumnType). The event OnGetValue of the grid traditionally used to assign values to cells in user declared columns does not fire if there is a LiveBinding link. I think it is possible to to fill the columns manually, but how can I populate this column with Livebindings mechanism?