I want to bind a TObjectList of custom delphi objects to a grid using live bindings. I wish to have Nullable support for the object properties so that if they do not have a value, they show up blank in the grid and edits similar to how datasets work with nullable db columns.
I'm assuiming the Delphi language doesn't have support for nullable types?
TMyObject = class
private
FQuanitity: Nullable<Integer>;
FDescription: Nullable<string>;
public
property Quantity: Nullable<Integer> read FQuanitity write FQuanitity;
property Description: Nullable<string> read FDescription write FDescription;
end;
FMyObectList: TObjectList<TMyObject>;
I would create a TPrototypeBindSource
and bind FMyObjectList using the OnCreateAdapeter
Can someone point me in the right direction for how to do something like this? Thanks
EDIT / Answer:
The best option for Nullable types is Spring4D, but there is no way to directly bind these values using Live bindings.