I am trying the LiveBindings in XE3.
I have design a form with some controls using TPrototypeBindSource
. The controls are bounds to fields in TPrototypeBindSource
using visual designer. I can see the random data on the controls in design time and I am happy with the layout.
Next, I want to hook the UI controls to live data store in TClientDataSet
instance. Is there an easy way to do it?
I try the TPrototypeBindSource.OnCreateAdapter
event, but I couldn't find a suitable TBindsourceAdapter
for TDataset
. There is a TBindSourceDB
but it is unable to hook to TBindSourceAdapter
.
The only solution I found is I have to re-assign the link from TPrototypeBindSource
to TBindSourceDB
, by doing so will make the random data lost in design time.
Is there any way to make design time using prototype data and runtime using Dataset's data?