LiveBindings is a data-binding feature supported by both the VCL and FireMonkey in RAD Studio XE2 and later versions.
Questions tagged [livebindings]
139 questions
0
votes
1 answer
Delphi - How to bind Items of an Enumerator-Type to a ComboBox and Bind Selected Item to An Object
I have created a few custom Enumerator-Sets.
Example:
Type TStatus=(Unknown=0, Dead=1, Owned=2, Borrowed=3);
Now I want to fill a Combobox with all the Items defined in my Set.
So my fist thought was to use the TypeInfo, GetEnumName and…

Viktor Pagels
- 271
- 4
- 15
0
votes
2 answers
Unable to get TEdit to connect with dataset under Livebindings when setting datasource.dataset at runtime
How do I get controls other than TStringGrid to work properly with Livebindings when the Dataset property of their Datasource is set at runtime? I am able get a TStringGrid to recognize the dataset fields, but not other controls such as TEdit.
Here…

Terry Thompson
- 489
- 2
- 15
0
votes
0 answers
default radio input checked attribute not working with can-value
Using can 2.2 : I'm having trouble getting a radio input field to be checked by default when also using the can-value attribute.
The relevant part of the stache template looks like this:

foundling
- 1,695
- 1
- 16
- 22
0
votes
0 answers
How do i change the value of ItemHeader.Text in ListView while using LiveBinding
I've been stuck on this problem for a while now. I have a ListView that's filled via a RESTclient etc. i get categories from the server that go from 0 to 15 and i want to rename the 0 to Test. I know this is easely solvable by just changing it…

Edwin ten Brinke
- 1
- 1
0
votes
2 answers
LiveBindings, alter data at runtime
Im struggling with the flowing.
I'm trying to use liveBindings with my own classes.
So i wrote:
procedure TFormSearchOfferte.absSearchCreateAdapter(Sender: TObject;
var ABindSourceAdapter: TBindSourceAdapter);
begin
myOfferteList :=…

user5243556
- 1
- 1
0
votes
1 answer
Livebindings with contained objects
I need bind a object non visual with TEdit.
TCountry = class
FName: string;
...
end;
TCity = class
FName: string;
FCountry: TCountry;
...
end;
I use livebindings with TDataGeneratorAdapter and TAdapterBindSource and I don't how to…

Odione
- 1
- 1
0
votes
1 answer
How to bind a TObjectList in Delphi
I'm trying to figure out how to bind an object list to a list box. It seems all the Embarcadero samples bind to datasets.
It seems that I should use TBindList, but I cannot see how to link it to the TObjectsList. The SourceComponent property…

Cobus Kruger
- 8,338
- 3
- 61
- 106
0
votes
1 answer
Delphi Object Pascal corresponding run-time calls of TBindNavigator
My question is about Delphi Object Pascal corresponding run-time calls of TBindNavigator component buttons.
I'm interesting of the following buttons:
"Post";
"Cancel";
"Refresh".
How can I implement it in the code without TBindNavigator?
Would…

Den Ivanov
- 1
- 1
0
votes
0 answers
LiveBindings Memory Leak on iOS
I'm using this code to change how items are shown on a TListView at runtime:
// lvContacts: TListView
// cdsContacts: TClientDataSet with two records
// lcfContacts:…

iMan Biglari
- 4,674
- 1
- 38
- 83
0
votes
1 answer
Nullable scalar types and LiveBindings
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…

MobileDevGuy
- 67
- 4
0
votes
1 answer
How to update TListview after adding record to TFDTable?
A listview is bound to BindSourceDB with a TFDTable as dataset.
The listview does show the data from the dataset as expected.
However, when adding a new record to the dataset the binding does not automatically refresh the table: so the new record is…

Hans
- 9
- 2
0
votes
2 answers
delphi live bindings filter a combo box
I have 2 combo boxes link to a table looking up values in a type and subtype tables. When the users select the first I need to filter the data in the second.
Example data:
Tables
type subtype
vehicle car
vehicle truck
vehicle 4-wheeler
boat…

Wade Broyles
- 36
- 3
0
votes
1 answer
Delphi Livebindings - Including other field values in CustomFormat
This should be simple, but I appear to be struggling to get it to work.
Quite simply I have a name column and an id (autoinc) column, I'd like to combine the two fields into one label control using Live Bindings.
I've set the custom control to
"%s…

Steve Childs
- 1,832
- 2
- 20
- 26
0
votes
1 answer
Delphi LiveBindings: binding a component property to a TEdit
In want to use LiveBindings in Delphi XE5. I am new to this.
I have a VCL TForm with a TEdit.
I have a component in a seperate unit:
TMyComponent=class(TComponent)
private
FMyProperty: Integer;
public
property MyProperty: Integer read…

user3384674
- 759
- 8
- 28
0
votes
1 answer
Livebinding a DataSet field to a Form Caption
I would have thought this obvious, but I don't see a way of doing it, is there a way of binding a dataset field to the caption of a form. I'm using Delphi XE5.

Alister
- 6,527
- 4
- 46
- 70